js 定时刷新页面

时间:2021-05-14 07:56:16
js 定时刷新页面:
  
      <script language="javascript">
             function myrefresh()
             {
                 window.location.href="login.aspx";
                 
             }

             setTimeout(myrefresh,2000); //指定2秒刷新一次
            
             </script>