基本 jQuery javascript 倒计时
我知道这是基本的。但我的 JS 太迟钝了,我无法“自己动手”,而且我厌倦了花几个小时却一事无成。请帮忙!
我通过 Google 和 Google 找到了几十个 JS 倒计时。在 jQuery.org 上。我试图修改的是 http://plugins.jquery.com/project/tgcCountdown 因为这是我需要的那种 BASIC 计数器。但它只提供基于给定 SQL 时间戳的倒计时,我需要固定计时器的第二个选项,例如从现在起 5 分钟。
有什么建议吗?我知道这一定很简单! secs = 300
或 now.getTime() + 300
或类似的东西!我已经很接近了,但我就是无法到达那里!
I KNOW that this is basic. But I'm so JS-retarded I can't "do-it-myself" and I'm tired of spending hours getting nowhere. Please help!
There are dozens of JS countdowns I find by Googling & on jQuery.org. The one I'm trying to modify is http://plugins.jquery.com/project/tgcCountdown because it's the kind of BASIC counter I need. But it only offers the countdown based on a given SQL timestamp, and I need a 2nd option of a fixed timer, e.g. 5 minutes from NOW.
Any advice? I know it's gotta be simple! secs = 300
or now.getTime() + 300
or something like that! I'm so close but I just can't get there!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
编辑以适用于 Firefox
Edit to work for Firefox