摘要: 使用async/await实现一个类似java中的thread.sleep()的函数 async function sleep(delay) { return new Promise((resolve) => setTimeout(resolve, delay));}async function f 阅读全文
posted @ 2021-09-02 14:03 fengwenqi 阅读(489) 评论(0) 推荐(0) 编辑