html页面实现自动刷新
1、页面自动刷新(H5格式的html页面,只需要在head中添加)
<!-- 1、设置时间10秒刷新一次该页面 -->
<meta http-equiv="refresh" content="10">
<!-- 2、设置指定时间跳转 -->
<meta http-equiv="refresh" content="10;url=http://www.baidu.com">
2、使用js实现页面的自动刷新
<script language="JavaScript">
setTimeout(function(){location.reload()},3000); //指定3秒刷新一次
</script>
原文链接:https://blog.csdn.net/weixin_44411569/article/details/100155243