我们看到,没有加await,异步函数A,B顺序执行,由于A运行时间较长,所以B先执行完成,整个过程没有阻塞。 加await. async test(ctx,next){ this.doThing() ...
確定! 回上一頁