嗨需要趕上特定分鐘和秒,我需要看到飼料。 HTML SPAN:計數分鐘和秒onclick
<span class="minutes">0</span>:
<span class="seconds">00</span>
JQuery的:
function count_timesong(end_time){
var time_parts = end_time.split(':');
var minutes = time_parts[0];
var seconds = time_parts[1];
$('.minutes').countTo({from: 0, to: minutes,speed: 600000});
$('.seconds').countTo({from: 00, to: seconds,speed: 10000});
}
我需要增加分鐘,每60秒和停止時到達END_TIME
換句話說,你需要一個計數器,不是嗎? – reporter 2014-09-04 11:09:23
是的,第一個答案是我真正需要的!現在我需要將它與進度條合併! – user3636153 2014-09-04 11:44:15