为什么要用 then 而不是 await async 呢
来源:5-5 用useContext存储全局用户信息

weixin_慕码人320477
2021-03-25
想问下老师 为什么要用 then 而不是 await async 呢
写回答
3回答
-
都一样,看你的风格。。
012021-03-25 -
慕的地1455017
2021-04-13
如果 then 中再无异步 then 更合适
00 -
大艾尔
2021-03-25
写then更加条例语义化吧,async await有时候要写完函数之后点回去前面加async
00
相似问题