摘要: Sleep代码 export const Sleep = (ms)=> { return new Promise(resolve=>setTimeout(resolve, ms)) } 使用代码 await Sleep(1500) 先打印1,休眠1.5秒后打印2 async test(){ cons 阅读全文
posted @ 2021-06-29 16:42 HumorChen99 阅读(17) 评论(0) 推荐(0) 编辑