浅析函数防抖与函数节流

 

// vue 中的简单使用      
clearTimeout(this.timeout) this.timeout = setTimeout(() => { this.searchData(keywords) // 开始搜索 }, 300)

 

 

 

详见:https://www.jianshu.com/p/f9f6b637fd6c

 

posted @ 2020-11-11 11:20  James2019  阅读(706)  评论(0编辑  收藏  举报