jQuery 秒表倒计时并重置
我正在为我的项目寻找 jQuery 秒表。只是在谷歌上快速搜索了一下我是否可以使用已经制作的任何东西。但没有找到任何适合我的项目的东西,因为我需要将其设置为 X 分钟,倒计时为零。还需要有一个重置按钮,以便重置后 X 分钟重新启动。 发现了这个不错的: http://www.kellishaver.com/projects/stopwatch/
我应该将其修改为满足我的需求还是我应该从头开始做一些事情? 欢迎任何想法,谢谢。 :)
编辑:
让它按照我想要的方式工作,如果你想知道我是怎么做的,请阅读这里...... jQuery 使 kellishaver 秒表插件倒计时而不是向上< /a>
I'm looking for a jQuery stopwatch for my project. Just did a fast search on google if i could use anything that's already made. But didn't find anything fiting my project, cause I need it to be set to X minutes, countdown to zero. There also need to be a reset button so it restarts at X minutes when reseted.
Found this nice one:
http://www.kellishaver.com/projects/stopwatch/
Should I modify it to meet my needs or should I do something from scratch?
Any ideas are welcome thnx. :)
Edit:
Got it to work as I wanted, read here if you wonder how I did...
jQuery make kellishaver stopwatch plugin countdown instead of up
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我正在查看秒表 jQuery 插件,似乎很容易根据您的需要修改它,而不是编写自己的代码,除非您想获得经验。
就我个人而言,我会编写自己的代码来获得经验并让我更好地控制它。
I was looking through the stopwatch jQuery plugin, and it seems easy enough to just modify it to your needs rather than coding your own, unless you want to gain the experience.
Personally, I would code my own to gain experience and gives me more control over it.