摘要: 开篇解释一下async /await 与 Primise的关系 async/await是Promise的语法糖所以这里我会直接使用async/await替换Promise let result = await func() // => 等价于 func().then(result => { // c 阅读全文
posted @ 2021-11-19 14:23 Mica 阅读(2772) 评论(1) 推荐(1) 编辑