企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
[TOC] ## useDebounceFn ``` import { useDebounceFn } from '@vueuse/core' const debouncedFn = useDebounceFn(() => { // do something }, 1000) window.addEventListener('resize', debouncedFn) ``` ## useThrottleFn ``` import { useThrottleFn } from '@vueuse/core' const throttledFn = useThrottleFn(() => { // do something, it will be called at most 1 time per second }, 1000) window.addEventListener('resize', throttledFn) ```