在网页中增加如下的代码即可实现跳转
<script> location.href = "login" </script>
其实:location.href为命令,引号内指定的就是要跳转的位置。
本文介绍了一种简单的网页跳转方法,只需在网页中插入特定的JavaScript代码即可实现自动跳转到指定页面。
在网页中增加如下的代码即可实现跳转
<script> location.href = "login" </script>
其实:location.href为命令,引号内指定的就是要跳转的位置。
转载于:https://www.cnblogs.com/JackeyZheng/p/5851781.html

被折叠的 条评论
为什么被折叠?