Situation:
在 Chrome 使用 window.location.href(“xxx.aspx”) 無法跳轉 xxx.aspx,但在 IE 可以!
Action:
改用 window.location.assign(“xxx.aspx”) 在 Chrome 和 IE 都可使用!
Result:
可成功在 IE 和 Chrome 跳轉
Situation:
在 Chrome 使用 window.location.href(“xxx.aspx”) 無法跳轉 xxx.aspx,但在 IE 可以!
Action:
改用 window.location.assign(“xxx.aspx”) 在 Chrome 和 IE 都可使用!
Result:
可成功在 IE 和 Chrome 跳轉