/** * 函数节流 * @param fn 要执行的函数 * @param threshold 执行间隔,单位毫秒(ms) * @param scope 调用函数上下文 * @returns {Function} */ export default function throttle(fn: Function, threshold: number, scope?: any): (...arg: any[]) => void;