mod(custom): change
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-10-05 04:20:23 +08:00
parent 8e119162f1
commit b2ac7f33f3

View File

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