vue中Promise对象用法

Promise.all([
    需要异步一起执行的方法---------先做的事
]).then(res=>{
    后做的事(先做的事已经做好了)
})

举栗子🌰: Promise.all([ this.aaa() this.bbb() ]).then((res)=>{   this.ccc()
});

 

posted @ 2019-08-27 14:03  大熊丨rapper  阅读(583)  评论(0编辑  收藏  举报