摘要: 防抖 性能优化方案,防抖用于减少函数请求次数,对于频繁的请求,只执行这些请求的最后一次。 基础版本 function debounce(func, wait = 300){ let timer = null; return function(){ if(timer !== null){ clearT 阅读全文
posted @ 2020-08-03 19:10 小魏code 阅读(184) 评论(0) 推荐(0)