function sleep (tm) {
return new Promise(resolve => setTimerout(resolve, tm))
}
sleep(2000).then(() => {console.log('hhah')})
练习手写sleep
最新推荐文章于 2025-02-25 14:48:19 发布
由于未提供博客具体内容,无法给出包含关键信息的摘要。
8万+

被折叠的 条评论
为什么被折叠?



