anglejs – 加入承诺有角度

前端之家收集整理的这篇文章主要介绍了anglejs – 加入承诺有角度前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我如何 join 2承诺有角度?

(我已经看到文档chain他们,但这不是我需要)

在Q中我想实现的例子:

Q.all([promiseA,promiseB]).done(function () {
    console.log("Both promises have been executed concurrently and then resolved");
});
使用$q.all()
$q.all([promise1,promise2]).then(function (result) {
// result should be an array
},function () {
// call when either promise1 or promise 2 is rejected
});
原文链接:https://www.f2er.com/angularjs/143067.html

猜你在找的Angularjs相关文章