jQuery定时器插件 jQuery Timers

 
更多

jQuery Timers 是一个用来封装 setTimeout 和 setInterval 方法的 jQuery 定时器插件。

示例:

$("#close-button").click(function() {
  $(this).oneTime(1000, function() {
    $(this).parent(".main-window").hide();
  });
});
$("#cancel-button").click(function() {
  $("#close-button").stopTime();
});

打赏

本文固定链接: https://www.cxy163.net/archives/706 | 绝缘体

该日志由 绝缘体.. 于 2012年06月08日 发表在 JS,Jquery, 首页 分类下,
原创文章转载请注明: jQuery定时器插件 jQuery Timers | 绝缘体
关键字: ,

报歉!评论已关闭.