async和await-cnblog

  • 在之前对promise对象的处理
    • 使用Promise原型函数then,catch
    • 解决回调地狱的问题,但存在冗余代码
    • .then().then().then()

async await es8(esma 2017) 引入

  • await Promise()
  • await Promise()
  • ....
posted @ 2023-02-04 15:03  凌歆  阅读(20)  评论(0)    收藏  举报