我有一個jQuery的每個函數。在它裏面我調用了一個函數。函數內部的每個函數只有在這個函數完成前一個元素時纔會被調用。調用jQuery中的每個函數
function x(t){
var a = something;
$.each(a, function(index,value){
y(this);
});
}
function y(t){
$.ajax({
}).done(function(r){
if(r.success){
}
else{
}
});
// This function should be called for the second element
// in the each function only if its completed for the first element.
}
爲什麼不會是完整的?它是異步的嗎? – adeneo