MyGit

2.2.0

hilios/jQuery.countdown

版本发布时间: 2016-08-08 20:23:54

hilios/jQuery.countdown最新发布版本:2.2.0(2016-08-08 20:23:54)

What's new in 2.2.0?

Deferred initialization

Allows the registration of callbacks before starting the plugin, so always renders at the initialization.

$('#clock').countdown('YYYY/MM/DD', {defer: true})
.on('update.countdown', function(event) {
    $(this).html(event.strftime('%D days till end...'));
})
.countdown('update') //
.countdown('start');

Total count

Standalone usage of any time component in the formatter:

$('#clock').countdown('YYYY/MM/DD', function(event) {
    $(this).html(event.strftime('%I hours left'));
    $(this).html(event.strftime('%N minutes left'));
    $(this).html(event.strftime('%T seconds left'));
});

Weeks left %W

To use in conjunction of the months %m displays only the weeks left to complete that month:

$('#clock').countdown('YYYY/MM/DD', function(event) {
    $(this).html(event.strftime('%m months and %W weeks till end...'));
});

相关地址:原始地址 下载(tar) 下载(zip)

1、 jquery.countdown-2.2.0.zip 5.95KB

查看:2016-08-08发行的版本