0
我在本地页面上使用Flipclock.js。一切工作正常,倒计时到达0后除外。此页面用于我的办公室显示。我在这两个其他页面之间旋转。每当定时器到达0时重新加载页面,日期和时间就会变得很糟糕。flipclock.js刷新时间过后刷新
下面是代码:
var clocks = [];
$(document).ready(function() {
var currentDate = new Date();
var futureDate = new Date(currentDate.getFullYear() +0, 10, 14, 12, 31);
var diff = futureDate.getTime()/1000 - currentDate.getTime()/1000;
clocks.push($('.clock-1').FlipClock(diff, {
clockFace: 'DailyCounter',
countdown: true,
showSeconds: false,
callbacks: {
stop: function() {
$('.message-1').html('Insert message here!');
}
}
}));
一点说明将帮助别人... – Chamath 2015-08-14 05:17:10