重複の可能性:
Deferred の配列を $.when() に渡す
jquery deferred $.when を ajax 関数の配列として渡す方法はありますか? 例:
var arr = [
$.getJSON(window.location, function() { alert('yes') }),
$.getJSON(window.location, function() { alert('yes') })
]
$.when(arr).then(function(a, b) {
});
ご協力いただきありがとうございます!