JQuery倒计时器插件的问题
我正在使用这个插件创建一个简单的倒计时器: http://keith-wood.name/countdown.html
我的问题是月份的输出如布局参考中所述似乎不起作用。
此页面:http://keith-wood.name/countdownRef.html#layout 描述月份的输出类似于 {ov} ,但使用以下代码只会给我零:
$(function () {
var austDay = new Date();
austDay = new Date(2011, 6, 21);
$('#defaultCountdown').countdown({until: austDay, layout:'<b>{ov} {dl} and'+'{hn} {hl}, {mn} {ml}, {sn} {sl}</b>'});
});
我试图让它用分隔符吐出月份、天、小时和分钟。
我正在使用 JQuery v.1.4.4
I'm using this plugin to create a simple countdown timer:
http://keith-wood.name/countdown.html
My issue is that the output of months as described in the layout reference doesn't seem to work.
This page: http://keith-wood.name/countdownRef.html#layout describes the output of months to be something like {ov} but that just gives me zero with the following code:
$(function () {
var austDay = new Date();
austDay = new Date(2011, 6, 21);
$('#defaultCountdown').countdown({until: austDay, layout:'<b>{ov} {dl} and'+'{hn} {hl}, {mn} {ml}, {sn} {sl}</b>'});
});
I'm trying to get it to spit out the months, days, hours and minutes with separators.
I'm using JQuery v.1.4.4
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只需将布局字符串更新为以下内容:
字母“o”是此插件的月份代码,以下“n”表示该日期时间部分类型的数据,“l”表示日期时间部分的标签类型。
Just update your layout string to the following:
The letter 'o' is the code for month with this plugin, with the following 'n' for the data for that datetime part type, and the 'l' for the label of the datetime part type.