【发布时间】:2016-08-28 17:13:37
【问题描述】:
我正在尝试使用此代码在网页上实现 Keith Wood Countdown,该代码位于 end body 标记之前:
$(function(){
var untilDate = new Date(2016,4,4,8,0);
console.log(untilDate.getFullYear() + "-" + untilDate.getMonth() + "-" + untilDate.getDate());
$("#next-departure").countdown($.countdown.regionalOptions["fr"]);
$("#next-departure").countdown(
{
until:untilDate,
format:'yowdHMS'
}
);
});
控制台中没有错误并且日期是正确的,但是...总是显示: No countdown running
知道我缺少什么吗?
【问题讨论】:
标签: javascript jquery jquery-countdown