03 2019 档案
摘要:function debounce(func, waite) { let timerId = null return function(...args) { if (timerId) { clearTimeout(timerId) } timerId = setTimeout(() => { func(...args) }, wai...
阅读全文
摘要:1.直接字符量 2.字符类 3.重复 非贪婪重复 4.选择、分组和引用 5.指定匹配位置 6.修饰符 7. String 7.1 search 7.2 replace 支持全局 7.3 match 全局 -》 返回结果数组 非全局 -》 a[0]完整匹配 a[1]->$1 index,input 7
阅读全文