控件使用文档

飞道科技

倒计时

<fd-wh000014></fd-wh000014>

Attributes

time

时间

number

步数

type

显示的格式 1.xx天xx小时xx分xx秒 2.xx天xx:xx:xx

show-time-type

显示的类型 1.只显示秒(00秒) 2.分、秒(00分00秒) 3.小时、分、秒(00小时00分00秒) 4.天、小时、分、秒(00天00小时00分00秒)

show-text

倒计时结束后显示的文字

Methods

start

开始

 editor.start();

stop

暂停

 editor.stop();

continue

继续

 editor.continue();

reset

重置

 editor.reset();

set_num

设置步数

 editor.set_num(2);

set_time

设置时间

 editor.set_time(60);

setformat

设置显示格式

 editor.setformat(1);

Events

fdwe-timeout

时间到时发生改变

Example

    <fd-wh000014 time='6000' number='2' type='2' show-text='时间到'></fd-wh000014>