📌  相关文章
📜  为什么我不能使用 window.location.href - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:13.546000             🧑  作者: Mango

代码示例1
If you are calling this function "through a submit button." 
This may be the reason why the browser does not redirect. 
It will run the code in the function and then submit the page instead 
of redirect. In this case "change the type tag of your button."