我正在使用jQuery的.when()来wrapanarrayofpromises以便在所有promise都已解决时我可以采取一些行动。$.when.apply($,requests).done(function(){console.log(arguments);//itisanarraylikeobjectwhichcanbeloopedvartotal=0;$.each(arguments,function(i,data){console.log(data);//dataisthevaluereturnedbyeachoftheajaxrequeststotal+=data[0];