Preparing search index...
The search index is not available
@yunyoujun/utils
@yunyoujun/utils
throttle
Function throttle
throttle
(
fn
,
threshold
?
)
:
(
(
...
args
)
=>
void
)
节流函数:单位时间内,只有一次触发事件的回调函数执行
Parameters
fn
:
Function
threshold
:
number
= 200
ms 单位时间
Returns
(
(
...
args
)
=>
void
)
(
...
args
)
:
void
Parameters
Rest
...
args
:
any
Returns
void
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
@yunyoujun/utils
Loading...
节流函数:单位时间内,只有一次触发事件的回调函数执行