需要有关 JQuery UTC 日期函数的帮助

发布于 2024-08-21 07:00:20 字数 276 浏览 11 评论 0原文

我正在尝试使用 Jquery 倒计时插件,但我在 UTC 日期格式设置方面遇到问题。

我希望倒计时的日期是 2010 年 7 月 23 日星期五。

这是相关代码...

until: $.countdown.UTCDate(2010,  7 - 1, 23), 
                format: 'YOD',

输出只是 00.00.00 等

有人可以帮助我吗?

预先感谢,

I am trying to use the Jquery Countdown plugin but I am having trouble with my UTC Date formatting.

The date I wish to countdown to is Friday 23rd July 2010.

Here is the relevant code...

until: $.countdown.UTCDate(2010,  7 - 1, 23), 
                format: 'YOD',

The output is just 00.00.00 etc

Can anybody help me?

Thanks in advance,

Dan

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

滥情哥ㄟ 2024-08-28 07:00:20

http://keith-wood.name/countdownRef.html#UTCDate

第一个参数UTCDate 应该是您的时区偏移量:

$.countdown.UTCDate(+10, 2010,  7 - 1, 23)

http://keith-wood.name/countdownRef.html#UTCDate

The first parameter to UTCDate should be your timezone offset:

$.countdown.UTCDate(+10, 2010,  7 - 1, 23)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文