我想延遲準備好的方法調用(準備好=所有參數已經設置)以供執行。例如:準備要執行的方法調用
我有以下監聽方法的文本框:
var storedRequest = null;
function doAjaxRequest() {
//if there is no request at this moment, do the request
//otherwise: store the request and do nothing
}
//will be executed after a request is done
function callbackAjaxRequestComplete() {
//is storedRequest != null --> Execute that request (the last one)
}
那麼,有沒有存放一個PREPARED方法調用執行成爲了可能?
即糖,謝謝! :) –