防抖
使用Lodash 工具库
引入 import _ from 'lodash'
testMesssge: _.debounce(function() {
console.log('22')
}, 500)
节流
testMesssge: _.debounce(function() {
console.log('22')
}, 500)
Kipper-liu 2020-10-21 14:14 原文
防抖
使用Lodash 工具库
引入 import _ from 'lodash'