使用JS实现页面倒数计数
<script type="text/javascript">
var number = 5;
function showNum(){
if(number==1){
window.location.href = "<%=path %>/view/share/login/login.jsp";
}else{
document.getElementById("show_sec_span").innerHTML = --number;
}
}
setInterval("showNum()", 1000);
</script>
<html>
<body>
<span id="show_sec_span">5</span>秒后自动返回
</body>
</html>