1.在head中加入<meta http-equiv="refresh" content="10">指定10秒刷新一次;
2.使用js
<script type="text/javascript">
function refresh(){window.location.reload();
}
setTimeout('refresh()',2000); //指定1秒刷新一次
</script>
为了验证刷新了
我们在body中加入一段代码
<body οnlοad="alert('我被加载了!')">