在Javascript / Jquery中创建一个Count Up Timer [英] Create a Count Up Timer in Javascript/Jquery

查看:69
本文介绍了在Javascript / Jquery中创建一个Count Up Timer的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,我只是想知道是否有人可以告诉我,或指出我正确的方向,如何计算计时器。



我'我喜欢不断地拥有它,从第二次我把它放到位数,说几秒钟,几分钟,几小时,几天和几年。



谢谢!

解决方案

http://www.dailycoding.com/Posts/object_oriented_programming_with_javascript__timer_class.aspx



我用过它,效果很好。使用的示例计数,但我也用它来倒计时。


Hey, I'm just wondering if someone could tell me, or point me in the right direction, on how to make a count up timer.

I'd like to have it constantly, from the second I put it into place count up saying the seconds, minutes, hours, days, and years.

Thanks!

解决方案

http://www.dailycoding.com/Posts/object_oriented_programming_with_javascript__timer_class.aspx

I used that and it works great. The example used counts up, but I also used it to count down.

这篇关于在Javascript / Jquery中创建一个Count Up Timer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆