Javascript-Countdown
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:Very simple countdown timer with event hooks for completion and updating each second.
A very basic countdown timer class for JavaScript. Requires jQuery.
Use the onTick event to have some interface update on each second.
start() method will also reset the timer;


    $(document).ready(function(){

      var timer = new CountdownTimer({
        seconds: 5,
        onTick: function(){
          $('#mins').text(timer.fMins);
          $('#secs' ).text(timer.fSecs);
        },
        onComplete: function(){
          alert('complete');
        }
      });

      timer.start();

    });


本源码包内暂不包含可直接显示的源代码文件,请下载源码包。