await async

93 阅读1分钟

await xxx() ----xxx的返回值是promise对象 函数会等待promis状态改变
然后在向下执行语句