Skip to content

debounce 防抖函数

source

ts
import { debounce } from 'fe-toolsbox'
const count = ref(0)
const debounceFn = debounce(() => {
  count.value++
}, 1000)
0

fe-toolsbox 前端业务常用工具库