流浪のwolf

卷帝

导航

2023年6月30日

等待函数

摘要: const wait = (ms) => new Promise((resolve)=> setTimeout(resolve, ms)) const asyncFn = async () => { await wait(1000) console.log('等待异步函数执行结束') } 阅读全文

posted @ 2023-06-30 19:42 流浪のwolf 阅读(1) 评论(0) 推荐(0) 编辑