如果我想像这样实现短轮询:
function firstCall(){
$.ajax({
...
success: function(response){
if (response.OK == "OK"){
secondCall();
}else{
firstCall();
}
}
});
}
这够了吗?还是我真的需要用 包围firstCall()in else 子句setTimeout?谢谢