: : :
var oDays = document.getElementById('days');
var oHours = document.getElementById('hours');
var oMinutes = document.getElementById('minutes');
var oSeconds = document.getElementById('seconds');

var countdown = new CountDown({
  time: 2 * 24 * 60 * 60 * 1000,
  onChange(currentTime) {
    var timeData = CountDown.parseTimeData(currentTime);
    oDays.innerText = CountDown.padZero(timeData.days);
    oHours.innerText = CountDown.padZero(timeData.hours);
    oMinutes.innerText = CountDown.padZero(timeData.minutes);
    oSeconds.innerText = CountDown.padZero(timeData.seconds);
  },
  onEnd() {
    console.log('倒计时结束!');
  }
});

countdown.start();