卷帝
const wait = (ms) => new Promise((resolve)=> setTimeout(resolve, ms)) const asyncFn = async () => { await wait(1000) console.log('等待异步函数执行结束') }
posted on 2023-06-30 19:42 流浪のwolf 阅读(4) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 流浪のwolf Powered by .NET 9.0 on Kubernetes