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