摘要: /** * 防抖 * 一段时间内触发重新计时 */ function debounce (func, delay) { let timer = null; return function(){ if(timer) clearTimeout(timer) timer = setTimeout(() = 阅读全文
posted @ 2023-04-06 12:47 小僵尸 阅读(13) 评论(0) 推荐(0) 编辑