use*_*451 2 javascript jquery polling
如果我想实现这样的短轮询:
function firstCall(){
$.ajax({
...
success: function(response){
if (response.OK == "OK"){
secondCall();
}else{
firstCall();
}
}
});
}
Run Code Online (Sandbox Code Playgroud)
这还够吗?或者我真的需要用firstCall()in else子句包围setTimeout吗?谢谢