摘要: const obj = { a: 1, b: '2', c: [], // x d: { aa: 1, bb: '2', cc: '', // x dd: {} // x }, e: {} // x } const fn=(obj)=>{ if(Object.prototype.toString.c 阅读全文
posted @ 2021-08-27 16:52 abcdefgab 阅读(438) 评论(0) 推荐(0)
摘要: let number = 0 let timer = null function interval(func, wait) { function inter() { func.call(null) timer = setTimeout(inter, wait) } timer = inter(int 阅读全文
posted @ 2021-08-27 14:32 abcdefgab 阅读(55) 评论(0) 推荐(0)