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

 

 

 

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

 

相关文章: