EarthSDK
官网
对象索引
详细搜索
正在准备搜索索引...
earthsdk3
throttle
函数 throttle
throttle
<
T
extends
any
[]
>
(
fn
:
(
...
args
:
T
)
=>
void
,
time
:
number
,
startUpdateFunc
?:
StartUpdateFuncType
,
)
:
[
(
...
args
:
T
)
=>
void
,
()
=>
void
]
函数节流
类型参数
T
extends
any
[]
参数
fn
:
(
...
args
:
T
)
=>
void
需要节流的函数
time
:
number
毫秒
startUpdateFunc
:
StartUpdateFuncType
= defaultStartUpdateFunc
更新函数,可以不指定
返回
[
(
...
args
:
T
)
=>
void
,
()
=>
void
]
返回类似这样的数组:[doFunc, cancelFunc],第一个是截流函数,第二个用来取消
显示设置
成员可见性
继承
配色
自动
浅色
深色
官网
对象索引
详细搜索
EarthSDK
加载中……
函数节流