それが最新の場合、コールスタックオーバーフローの問題が発生しますか?
自己を再帰的に呼び出すからです
そのような問題が発生する場合、より良い実装はありますか?
function waitForMsg(){
$.ajax({
type: "GET",
url: "xxx.php",
async: true,
cache: false,
timeout: 600000,
success: function(data){
handleFunction(data);
waitForMsg();
},
error: function(XMLHttpRequest, textStatus, errorThrown){
XMLHttpRequest.abort();
waitForMsg();
}
});
}