我试图让我的倒计时器显示0年,0个月,7天0分钟
等,但无论我尝试输入什么数字,只要我尝试解决它,我得到的答案是 7,349 天等。代码如下:
// jQuery Countdown styles 1.6.1. - plugin by Keith Wood
function counter_start() {
var austDay = new Date();
austDay = new Date(austDay.getFullYear() - 2016, 0 - 7, 0); // Examples: (austDay.getFullYear() + 1, 3 - 1, 6) or (2013, 3 - 1, 6)
$("#defaultCountdown").countdown({
until: austDay,
format: 'DHMS'
});
}
我查看、阅读并询问其他人,但这不是我的领域,我就是不明白。有人给我提示吗?非常感谢您的阅读。杰米。
最佳答案
您的格式不准确。请尝试:
$('#defaultCountdown').countdown({
until: austDay,
format: 'YODM'
});
Y = Years
O = Months
D = Days
M = minutes
关于jquery - 改变 jQuery 倒计时的格式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34788017/