0
任何人都可以幫助我獲得要調用的函數,本例中函數之前的第二個()函數完成後?被調用的第一個函數包含ajax調用。完成上述功能後的調用函數
function requestPost(postID, clientId) {
first("path", { postID: postID, clientId: clientId});
second(); // this is where I want to call the second() but only the first() has completed.
}
感謝
將第二個函數傳遞給ajax調用作爲回調函數。 – Oded 2011-03-06 21:54:48