mirror of
https://gitee.com/gz-yami/mall4v.git
synced 2026-03-21 23:57:16 +08:00
移除空行
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user