如果你对该文章中的内容有疑问/不解,可以点击此处链接提问
要注明问题和此文章链接地址 点击此处跳转
轮询
function reqs() {
$.post("{:url('index/xcx_login_is')}",function(res){
if(res.result==1){
if(res.msg.code==1){
layer.msg(res.msg.msg);
setTimeout(function(){
top.location.reload()
},2000);
}else{
layer.msg(res.msg.msg);
}
}
},'json');
}
reqs();
setInterval(reqs, 3000);
王明昌博客
