Search
Preparing search index...
The search index is not available
aftool
Options
All
Public
Public/Protected
All
Inherited
Menu
Project aftool
Index
Classes
Action
Controller
Actions
Controller
Array
Util
Key
Util
Interfaces
Action
Controller
Params
Type aliases
Action
Func
Action
Object
Actions
Controller
Item
Functions
debounce
throttle
Type aliases
Action
Func
Action
Func
:
(
...
args
:
unknown
[]
)
=>
void
Type declaration
(
...
args
:
unknown
[]
)
:
void
Parameters
Rest
...
args:
unknown
[]
Returns
void
Action
Object
Action
Object
:
{
action
:
ActionFunc
;
delay
:
number
;
func
?:
ActionFunc
}
Type declaration
action
:
ActionFunc
delay
:
number
Optional
func
?:
ActionFunc
Actions
Controller
Item
Actions
Controller
Item
:
{
action
:
ActionFunc
;
delay
?:
number
;
type
?:
"debounce"
|
"throttle"
}
ActionControllers 构造函数中的配置项类型
Type declaration
action
:
ActionFunc
Optional
delay
?:
number
Optional
type
?:
"debounce"
|
"throttle"
Functions
Const
debounce
debounce
(
fn
:
ActionFunc
, delay
:
number
)
:
ActionFunc
防抖函数
Parameters
fn:
ActionFunc
要执行的主体函数
delay:
number
延迟ms为单位
Returns
ActionFunc
Const
throttle
throttle
(
fn
:
ActionFunc
, delay
:
number
)
:
ActionFunc
节流函数
Parameters
fn:
ActionFunc
要执行的函数主体
delay:
number
延迟时间
Returns
ActionFunc
Exports
Action
Controller
Actions
Controller
Array
Util
Key
Util
Action
Controller
Params
Action
Func
Action
Object
Actions
Controller
Item
debounce
throttle
Generated using
TypeDoc
ActionControllers 构造函数中的配置项类型