Function throttle

  • 节流

    Parameters

    • fn: (() => void)

      方法

        • (): void
        • Returns void

    • delay: number

      延迟

    Returns ((this, ...args) => void)

      • (this, ...args): void
      • Parameters

        • this: any
        • Rest ...args: []

        Returns void