Search
Preparing search index...
The search index is not available
@i61/utils-library
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@i61/utils-library
src/function/throttle
Module src/function/throttle
Index
Functions
default
Functions
default
default
(
fn
:
(
...
args
:
any
[]
)
=>
void
, wait
:
number
)
:
(
)
=>
void
description
节流函数 当持续触发事件时,每隔一段时间,只执行一次事件 适用于
resize
和
scroll
等函数的调用频率
Parameters
fn:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
wait:
number
Returns
(
)
=>
void
(
)
:
void
Returns
void
Modules
src/browser/get
Browser
Info
src/browser/get
Cookie
src/browser/remove
Cookie
src/browser/set
Cookie
src/function/debounce
src/function/download
Func
src/function/equal
src/function/throttle
src/image/get
Img
Size
src/image/load
Image
src/object/filter
Obj
src/object/has
Own
Prop
src/random/random
Color
src/random/random
Num
src/time/format
Pass
Time
src/time/format
Time
src/time/interval
Time
src/url/parse
Query
String
types
default
Generated using
TypeDoc
节流函数 当持续触发事件时,每隔一段时间,只执行一次事件 适用于
resize
和scroll
等函数的调用频率