摘要: 1.函数节流 函数在时间间隔内只能被触发一次。 函数节流有两种方式: (1)第一次执行: throttle(function,delay) { let timer = null; let first = true; let that = this; let args = arguments; ret 阅读全文
posted @ 2021-05-21 16:42 桃李子 阅读(48) 评论(0) 推荐(0) 编辑