如何页面自动跳转,学习到就要写下来,怕忘记了

google了一下,

只需要在源代码中的<head>后更改 meta处的 http-qeuiv 就可以了。

<meta http-equiv="Refresh" content="3;url=http://www.baidu.com"> 3秒后自动到baidu.com

在asp.net中,我们往往是这样

<meta http-equiv="Refresh" content="3;url=<%l=url%>"> 

至于url的输出,可以数据库得到,或者再转用javascrpt输出来,应该是很容易的。 

原文地址:https://www.cnblogs.com/pyman/p/1979447.html