页面跳转的方法

通过HTML的标签meta
<meta http-equiv='content-type' content="text/html;charset=utf-8"/>

实现页面刷新
<meta http-equiv='refresh' content='秒数'/>

实现页面跳转
<meta http-equiv="refresh" content="秒数;url=目标文档的URL"/>

通过php的header()实现页面跳转,重定向
header("location:目标文档的URL");

通过JS实现页面跳转
<script type="text/javascript">
    alert('内容');
    location.href='目标文档的URL';
</script>

猜你喜欢

转载自blog.csdn.net/qq_39240830/article/details/78004791
今日推荐