var oResult = document.getElementById('result');
var countdown = new CountDown({
  time: 60 * 1000,
  onChange(currentTime) {
    oResult.innerText = currentTime / 1000;
  },
  onEnd() {
    oResult.innerText = '倒计时结束!';
  }
});

countdown.start();