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