timer.jquery 介绍
jQuery Timer:在任何html元素内启动/停止/恢复/ 删除 漂亮的计时器。特点
轻量级,经过良好测试的jQuery?漂亮计时器 插件
在任何html元素内启动,暂停,恢复和 删除 计时器。
在特定时间后或定期 获取 通知 。
在计时器运行时单击并编辑时间!
在同一 页面 上启用 多个计时器 。
用法
$("#div-id").timer(options);
要使用选项启动计时器:
$("#div-id").timer({
seconds: {Int},// The number of seconds to start the timer from
duration: {String},// The time to countdown from. `seconds` and `duration` are mutually exclusive
callback: {Function},// If duration is set,this function is called after `duration` has elapsed
repeat: {Bool},`callback` will be called repeatedly
format: {String},// Format to show time in
editable: {Bool} // If click and edit time is enabled
hidden; {Bool} // If true,the timer is not dis played in the selected item.
});
初始化计时器上可用的 方法 :
//pause an existing timer
$("#div-id").timer('pause');
//resume a paused timer
$("#div-id").timer('resume');
//remove an existing timer
$("#div-id").timer('remove'); //leaves the dis play intact
//get elapsed time in seconds
$("#div-id").data('seconds');
?
网站地址 : https://jquerytimer.com
GitHub: https://github.com/walmik/timer.jquery
网站描述: jQuery计时器 插件
timer.jquery官方网站
官方网站: https://jquerytimer.com
如果觉得 网站内容还不错,欢迎将 网站 推荐给程序员好友。