yatter
Preparing search index...
function
throttle
Function throttle
throttle
<
F
extends
AnyFunction
<
any
>
,
T
extends
undefined
|
boolean
=
true
>
(
fun
:
F
,
delay
:
number
,
option
?:
ThrottleOption
<
T
>
,
)
:
<
C
>
(
this
:
C
,
...
args
:
Parameters
<
F
>
)
=>
void
节流
Type Parameters
F
extends
AnyFunction
<
any
>
T
extends
undefined
|
boolean
=
true
Parameters
fun
:
F
delay
:
number
option
:
ThrottleOption
<
T
>
= {}
leading
是否立即执行首次 default is true
trailing
是否保证执行最后一次 default is true
Returns
<
C
>
(
this
:
C
,
...
args
:
Parameters
<
F
>
)
=>
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
yatter
Loading...
节流