摘要: ``` const sleep = (timeountMS) => new Promise((resolve) => { setTimeout(resolve, timeountMS); }); (async () => { console.log('11111111, ' + new Date()); await sleep(2000); console.log('222222... 阅读全文
posted @ 2019-02-21 10:23 Mr.曹 阅读(5144) 评论(1) 推荐(1) 编辑