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[]) {