Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
例如,给定的开始时间是 10/28/2014 08:00:00AM(服务器时间)。它将计数并显示从给定开始时间过去的小时分钟秒?翻转时钟可以做到这一点吗?
这就是我正在使用的,似乎工作正常。
$(document).ready(function(){ var date = new Date(2014, 11, 09); var now = new Date(); var diff = now.getTime()/1000 - date.getTime()/1000; clock = $('.clock').FlipClock(diff, { clockFace: 'DailyCounter', countdown: false }); });