await 31 浏览 1 文章

await 是 JavaScript 异步编程中用于等待 Promise 解决的关键字,可暂停代码执行至 Promise 状态变更,配合 async 函数使用,简…