async作用:使得异步操作更加方便

基本操作:async它会返回一个Promise对象,能使用then、catch方法

async是Generator的一个语法糖

如果async函数中有多个await,那么then函数会等待所有的await指令运行完的结果,才去执行

相关文章:

  • 2021-09-11
  • 2021-11-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-13
  • 2021-08-30
  • 2022-12-23
猜你喜欢
  • 2021-08-17
  • 2022-12-23
  • 2022-12-23
  • 2021-11-09
  • 2022-12-23
  • 2021-09-09
相关资源
相似解决方案