会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
2020年8月3日
js 的防抖节流
摘要: 防抖 性能优化方案,防抖用于减少函数请求次数,对于频繁的请求,只执行这些请求的最后一次。 基础版本 function debounce(func, wait = 300){ let timer = null; return function(){ if(timer !== null){ clearT
阅读全文
posted @ 2020-08-03 19:10 小魏code
阅读(184)
评论(0)
推荐(0)
公告