日期:2014-05-16  浏览次数:20376 次

利用js刷新网页的两种方法
1. 网页自动刷新
<META HTTP-EQUIV="Refresh" content="时间(秒)">
  

2. 网页自动转页    
<META HTTP-EQUIV="Refresh" CONTENT="时间(秒);URL=地址">


3. J2EE实例
<meta http-equiv="refresh" content="30;URL=examRefresh.action"/>


public String examRefresh() throws Exception {
  ......
  return SUCCESS;
}


<action name="examRefresh" class="examineeAction" method="examRefresh">
  <result name="success">/examinee/examInfo.jsp</result>
</action>