web原子操作

飞道科技

@dfeidao/atom-web > timer定时器

External module: timer定时器

Index

Functions


Functions

start_timer

start_timer(fd: IFeidaoAiBrowserComponent, id: string, event_name: string, timeout: number): void

Defined in timer/start.ts:17

设定并启动定时器

example: start_timer(fd,id,event_name,timeout);

Parameters:

Name Type Description
fd IFeidaoAiBrowserComponent 系统参数
id string 定时器id
event_name string 响应编号(事件编号)
timeout number 定时器时间间隔

Returns: void


stop_timer

stop_timer(fd: IFeidaoAiBrowserComponent, id: string): void

Defined in timer/stop.ts:15

停止并清除定时器

example: stop_timer(fd,id);

Parameters:

Name Type Description
fd IFeidaoAiBrowserComponent 系统参数
id string 定时器id

Returns: void