10.10综合交易所原始源码-管理后台
1
admin
2026-01-27 779dcd060d1f4e15f65fc43022ac9f7b009fc9ef
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// 防抖 防止表单重复提交
export const Debounce = (fn, t) => {
  let delay = t || 300
  let timer
  return function () {
    let args = arguments
    if (timer) {
      clearTimeout(timer)
    }
 
    let callNow = !timer
 
    timer = setTimeout(() => {
      timer = null
    }, delay)
 
    if (callNow) fn.apply(this, args)
  }
}