08 2021 档案
摘要:defer会在DomContentLoad之后完成,async不保证script脚本的顺序,谁先加载完谁先渲染,阻塞html的渲染
阅读全文
摘要:function format(num) { return (num + '').replace(/(\d{1,3})(?=(\d{3})+(?:$|\.))/g, '$1,') } let nums = 12154631345643.2312 let res = format(nums) cons
阅读全文
摘要: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
阅读全文
摘要:let number = 0 let timer = null function interval(func, wait) { function inter() { func.call(null) timer = setTimeout(inter, wait) } timer = inter(int
阅读全文
摘要: 
阅读全文

浙公网安备 33010602011771号