摘要: 1、async 和 await async/await 是一种建立在Promise之上的编写异步或非阻塞代码的新方法。async 是异步的意思,而 await 是 async wait的简写,即异步等待。 1 // 假设这是我们要请求的数据 2 function getSomething(n) { 阅读全文
posted @ 2022-12-02 17:01 duanxuan 阅读(1666) 评论(0) 推荐(0) 编辑