Skip to main content

useThrottle

防抖函数,lodash throttle 二次封装

安装

npm install @jelper/hooks

引入

import { useThrottle } from '@jelper/hooks';

样例

基础用法

count: 0

API

useThrottle

参数说明类型默认值版本
useThrottle基于lodash throttle 节流函数<T extends (...args: any) => any>(cb: T, wait?: number, opts?: ThrottleSettings) => DebouncedFunc<T>--