async 申明这个fun是异步的,await 等待某个方法执行完后继续执行接下来的代码。
async somefun() {
do something...
await this.another();
//another执行完后开始执行
this.then();
}
async 申明这个fun是异步的,await 等待某个方法执行完后继续执行接下来的代码。
async somefun() {
do something...
await this.another();
//another执行完后开始执行
this.then();
}