頁面刷新:
有三種方法:
1,在html中設置:
<title>xxxxx</title>之後加入下面這一行即可!
定時刷新:<META HTTP-EQUIV="Refresh" content="10">
10代表刷新間隔,單位爲秒
2.jsp
<% response.setHeader("refresh","1"); %>
每一秒刷新一次
3.使用javascript:
<script language="javascript">
setTimeout("self.location.reload();",1000);
<script>
一秒一次
頁面自動跳轉:
1,在html中設置:
<title>xxxxx</title>之後加入下面這一行即可!
定時跳轉並刷新:<meta http-equiv="refresh" content="20;url=http://自己的URL">,
其中20指隔20秒後跳轉到http://自己的URL 頁面。