`

js自动刷新页面方法

阅读更多

1.每5秒刷新一下页面

<script type="text/javascript">

 setTimeout("querySystemNotice()",5000);//5000为5秒钟
 
    function querySystemNotice()
    {
         alert('aaaaaaaaa');
         window.location.reload();
    }
 </script>

 

其他不常用方法参见:http://www.jb51.net/article/14397.htm

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics