jsp页面:
<label>页面将于 5S [ <span id="register_time">5</span> ] 后自动跳转至登录页面,如未跳转,请点击右上角'用户登录'</label>
js脚本:
$(function(){
//注册成功,页面自动跳转至登录页面的js
var register_time=$('#register_time').html();
var register_id=$('#register_time');
setInterval(function(){
var register_time2=register_time--;
register_id.html(register_time2);
if(register_time2==0){
window.location="/wemiss/manager/login.jsp";
}
},1000);
})