var timer1 = setInterval(function(){
$.getJson(........)
},5000)
因为请求时间超过了设定的时间,此时会造成阻塞
解决方案:
var timer = setTimeout(function(){
$.getJson(........)
setTimeout(arguments.call,5000)
},5000)
var timer1 = setInterval(function(){
$.getJson(........)
},5000)
因为请求时间超过了设定的时间,此时会造成阻塞
解决方案:
var timer = setTimeout(function(){
$.getJson(........)
setTimeout(arguments.call,5000)
},5000)