摘要: 先执行A在执行B再执行.then里面的AAA() { XXXXX一堆代码 this.BBB().then(()=>{ 其他代码 })},async BBB(){ let res = await this.$http({ url:, data:{ }, }) try{ //执行代码 if (res.b 阅读全文
posted @ 2020-05-19 13:52 就想来看看 阅读(173) 评论(2) 推荐(0) 编辑
摘要: functionB(){ this.functionA() } functionA(){ return new Promise((resolve, reject) => { this.$http({ url:XXXX, type:'get', data:{ }}).then(res=>{ resol 阅读全文
posted @ 2020-05-19 13:20 就想来看看 阅读(147) 评论(1) 推荐(0) 编辑