我有一个jQuery倒计时器,它必须从30:00分钟到00:00计数。但显示在29:59 这里stucked是我的代码:JQuery倒计时器不倒计时
var now = new Date();
var newDateObj = new Date(now.getTime() + 30 * 60 * 1000)
$("#countdowntimer").countdown({
date: newDateObj.toGMTString(), //Counting TO a date
htmlTemplate: "%{m}:%{s}",
onComplete: function (event) {
$(this).html("Completed");
},
leadingZero: true
});
PS:我用的jquery.jcountdown1.3.js
插件
这里有什么问题?
你正在使用哪个倒计时插件? –
据我所知,jQuery没有提供倒计时方法。你使用什么插件? – cbillowes
参考这个插件http://keith-wood.name/countdown.html – Kathiravan