<!-- 定时刷新 start--> <script type="text/javascript"> var time=30; function delay() { if(time>0) { document.getElementById("reflash").innerHTML=--time+"秒后自动刷新页面"; } else { missedOrderForm.action = "getNotAcceptedWorkOrderSelect.action"; missedOrderForm.submit(); } } var setTime=setInterval("delay();",1000); </script> <!-- 定时刷新 end-->
子页面开窗之后也会刷新页面的解决
if(!!setTime) { clearInterval(setTime); setTime = null; }