时间完成后如何重新启动翻转时钟?
var clock;
$(document).ready(function() {
clock = new FlipClock($('.clock'), 10, {
clockFace: 'Counter',
autoStart: true,
countdown: true
});
});
我想在 10 秒后重新启动计数器。我试过的是
var clock;
$(document).ready(function() {
clock = new FlipClock($('.clock'), 10, {
clockFace: 'Counter',
autoStart: true,
countdown: true,
callbacks: {
stop: function() {
//my custom condition here if(not_free){start showing again}
clock.start();
}
}
});
});
但这不起作用。任何想法?