submit () {
this.debounce(() => {
debugger
}, 200)() // 此处需要调用一下该函数
},
debounce (fn, delay) {
var timer = null
return function (...args) {
var that = this
clearTimeout(timer)
timer = setTimeout(() => {
fn.apply(that, args)
}, delay)
}
}
01-22
01-04
05-20
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交