From b2ac7f33f315af150405de00fc0421173da56c07 Mon Sep 17 00:00:00 2001 From: YuanHuakk <1751826683@qq.com> Date: Sat, 5 Oct 2024 04:20:23 +0800 Subject: [PATCH] mod(custom): change --- src/utils/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/index.ts b/src/utils/index.ts index e885f4e..1617d64 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -97,7 +97,9 @@ export function debounce(fn: Function, delay: number = 500) { }; } -// 节流函数 +/* @param fn 节流函数 + * @param delay 节流时间 + */ export function throttle(fn: Function, delay: number) { let timer: any = null; return function (...args: any[]) {