async问题2
来源:3-2 Koa异步async

BernhardRiemann
2019-05-25
1
promise.then(…).then(…).then(…)
2
promise.then(
.then(
.then(
)
)
)
promise有两种情况,是不是async。。await主要是优化第二种情况
写回答
1回答
-
快乐动起来呀
2019-05-26
我没见过第二种用法,async 和 await 是Promise的语法糖,不用每次都then了
00
相似问题