摘要: // 定义一个异步函数 const asd = async () => { // 使用 await 等待一个 Promise 解决 const result = await fetchData(); // fetchData() 返回一个 Promise console.log(result); / 阅读全文
posted @ 2025-07-30 18:05 C豪 阅读(8) 评论(0) 推荐(0)