摘要: 1.async 函数是什么?一句话,它就是 Generator 函数的语法糖。 async函数就是将 Generator 函数的星号(*)替换成async,将yield替换成await,async函数的返回值是 Promise 对象,这比 Generator 函数的返回值是 Iterator 对象方 阅读全文
posted @ 2019-03-10 08:07 周大侠小课堂 阅读(488) 评论(0) 推荐(0) 编辑