使用meta实现页面的定时刷新或跳转

版权声明:企业站,小游戏制作 https://blog.csdn.net/qq947289507/article/details/79850225

使用meta实现页面的定时刷新或跳转

=============
<meta http-equiv="refresh" content="5">
这个表示当前页面每5秒钟刷一下,刷一下~

<meta http-equiv="refresh" content="2; url='/'">

这个表示当前页面2秒后跳到首页~

<meta http-equiv="refresh" content="0; url='http://www.qq.com/'">

页面直接跳转到腾讯网~

所以,当我们下次遇到“登录成功,正在跳转到您之前访问页面……”的时候,可以使用<meta>的这个refresh刷新,跳转功能,可以说是成本最低的。

问题来了:为何meta跳转不火呢?

答案:历史遗留问题,ie6以前对这个标签兼容性不好,现在大胆用起来吧!

猜你喜欢

转载自blog.csdn.net/qq947289507/article/details/79850225