尝试从您的ajax成功函数设置另一个超时:
function poll() { setTimeout( function() { $.ajax(.......).success( function(data) { poll(); //call your function again after successfully calling the first time. }); }, 10000);}
尝试从您的ajax成功函数设置另一个超时:
function poll() { setTimeout( function() { $.ajax(.......).success( function(data) { poll(); //call your function again after successfully calling the first time. }); }, 10000);}