javascript
PurePeace
这个作者很懒,什么都没留下…
展开
-
职教书签
只剩下代码了。 文章地址:https://www.52pojie.cn/thread-1208750-1-1.html /* 职教书签v3 date: 2020年6月30日 version: 0.2.0 author: Pure-Peace */ // vars -------------------------------- const hrefs = [] const arrowDown = 'am-icon-caret-down' const cl = 'class' const sp = '原创 2021-01-09 15:33:01 · 11819 阅读 · 38 评论 -
js实现类似python中time.sleep()的方法,ES7
主要使用了es6语法:async,await function sleep(ms) { return new Promise(resolve => setTimeout(resolve, ms)); } async function doSomething() { await sleep(3000); console.log('已经等待了3秒!!'); } // ...原创 2020-03-28 08:08:09 · 1981 阅读 · 0 评论