等待指定的时间
毫秒
sleep
delay(1000).then(() => console.log('1s'))sleep(1000).then(() => console.log('1s')) Copy
delay(1000).then(() => console.log('1s'))sleep(1000).then(() => console.log('1s'))
等待指定的时间