anglejs – 加入承诺有角度
发布时间:2020-12-17 07:46:23 所属栏目:安全 来源:网络整理
导读:我如何 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([
我如何
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 }); (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |