比如方法A()调用B()方法,然后B方法中返回一个值给A,A接收到这个方法再继续执行下一步的代码,如何实现??
methods: { async A() { const result = await B(); // dosomethings . . . }, B() { // dosomethings . . . return Promise.resolve(data); } }
1.4m articles
1.4m replys
5 comments
56.8k users