Preparing search index...
The search index is not available
@yunyoujun/utils
@yunyoujun/utils
debounce
Function debounce
debounce
(
fn
,
delay
?
)
:
(
(
...
args
)
=>
void
)
防抖函数:函数被触发后 n 秒执行回调,n 秒内被触发,则重新计时
Parameters
fn
:
Function
执行的函数
delay
:
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...
防抖函数:函数被触发后 n 秒执行回调,n 秒内被触发,则重新计时