Html页面实现自动刷新的几种方式
更新:2020-03-06 11:34:55
人气:10168
来源:本站原创
A+
1.页面自动刷新(当前页面):把如下代码加入<head>区域中
<meta http-equiv="refresh" content="60"> //单位为秒,其中60指每隔60秒刷新一次页面
2.一定时间之后跳转到指定页面(指定URL)
<meta http-equiv="refresh" content="60;url=http://www.mdaima.com">
3.页面自动刷新js版
<script language="JavaScript"> function urlrefresh(){ window.location.reload(); } setTimeout('urlrefresh()',1000); //单位:毫秒,指定1秒刷新一次 </script>
推荐的文章
随手记
PHP经验分享
- ● MySQLSUM在没有符合查询条件时返回结果为空的处理办法
- ● 如何开启PHP8的JIT提升运行速度
- ● 钉钉API接口-用PHP+Curl实现获取用户信息
- ● 钉钉API接口-用PHP+Curl实现获取应用Access_Token
- ● 在PHP中使用CURL,“撩”服务器只需几行——phpcurl详细解析和常见大坑
- ● MySQLInnodb并发涉及参数说明
- ● mysql参数调优之innodb_thread_concurrency、innodb_concurrency_tickets合理的使用cpu性能
- ● PHP用fsockopen检测指定IP端口是否开启可用
- ● PHP用socket检测服务器IP端口是否开放?代码示例
- ● GatewayWorker报错:Waring:Events::onMessageisnotcallable