首页 > TAG信息列表 > useDebounce
React Hooks 手写防抖useDebounce
定义 import { useCallback, useEffect, useRef } from "react" export interface DebounceRefType { fn: Function, timer?: NodeJS.Timeout } export type DebouncePropsType = [Function, number, Array<any>] const useDebounce = (...[fn, deb