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.
js 脚本太长,无法包含在正文中,但我已包含链接以供参考。提前致谢。
http://flipclockjs.com/
您可以使用interval回调调用 setTime 并将其设置为随机时间
interval
来自http://flipclockjs.com/的文档
interval 这个回调在定时器的每个间隔触发
setTime() 此方法将在实例化后设置时钟时间,只需调用 > FlipClock 对象上的 .setTime() 方法。