useThrottle
用来处理节流值的 Hook。
使用
使用useThrottle后,频繁设置throttleCurrValue, throttleValue每隔 500ms 变化一次。。
Api
Params
参数
说明
类型
默认值
value
需要节流的值
any
-
wait
超时时间,单位为毫秒
number
1000
最后更新于
这有帮助吗?
用来处理节流值的 Hook。
使用useThrottle后,频繁设置throttleCurrValue, throttleValue每隔 500ms 变化一次。。
参数
说明
类型
默认值
value
需要节流的值
any
-
wait
超时时间,单位为毫秒
number
1000
最后更新于
这有帮助吗?