mirror of
https://gitee.com/gz-yami/mall4v.git
synced 2025-12-25 23:09:00 +08:00
移除空行
This commit is contained in:
parent
a1d91beac7
commit
8bb1f46155
@ -7,13 +7,10 @@ export const Debounce = (fn, t) => {
|
||||
if (timer) {
|
||||
clearTimeout(timer)
|
||||
}
|
||||
|
||||
const callNow = !timer
|
||||
|
||||
timer = setTimeout(() => {
|
||||
timer = null
|
||||
}, delay)
|
||||
|
||||
if (callNow) fn.apply(this, args)
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user