1 <script type="text/javascript"> 2 setTimeout(function(){ //使用 setTimeout()方法设定定时2000毫秒 3 window.location.reload();//页面刷新 4 },2000); 5 </script>