摘要:
什么时候使用防抖,比如在输入框输入文字进行联想搜索,不可能输入一下就搜索一次,所以就用到了防抖 <input id="phone" type="text"/> // 需要触发搜索的函数 function debounce(d){ console.log("联想搜索phoneNumber:" + d) 阅读全文
posted @ 2020-01-06 18:09
chauncySHI
阅读(121)
评论(0)
推荐(0)
浙公网安备 33010602011771号