标签:function cti interval 请求 time() count .ajax set index
var iCount = setInterval(ChangeTime, 3500);//3.5秒请求一次函数
function ChangeTime() {
$.ajax({
type: "POST",
url: "/Home/Index/is_ajax_no",
success: function(msg){
if(msg == 1){
clearInterval(iCount); //停止刷新事件,防止出现页面跳转过慢,请求多次
location.href = ‘/Home/Index/reg_result_no_card‘;
return false;
}
}
});
}
标签:function cti interval 请求 time() count .ajax set index
原文地址:http://www.cnblogs.com/wtcl/p/7613962.html