jQuery Countdown で日数だけ表示させるスニペット
- 2014 3/9
- カテゴリー : 未分類
- jQuery . jQuery Countdown
- コメントを書く
jQuery Countdown で日数だけ表示させるスニペットをご紹介します。
var countDownEndDate = new Date('2015-01-01T00:00:00+0900'); $('#js-countdown').countdown({ until: countDownEndDate, compact: true, compactLabels: ['', '', '', ''], format: 'D' }); |
これで、カウントダウンする日数の部分だけ表示されます。