具体代码块儿大概如下所示:
request.getAsync(option)
.spread(function(res, content){
//step 1
var queue = [];
queue.push(request.postAsync(option1));
queue.push(request.postAsync(option2));
Promise.all(queue).then(function(){
//step 2 : do sth with arguments
});
}).spread(function(res, content){
//step 3
}).error(function(e){//...})
现在问题是程序走到step1
之后直接就跳到step3
了,压根儿不进step2
,这是怎么回事儿啊?