的javascript
timedCount();
function timedCount() {
var hours = parseInt( c / 3600 ) % 24;
var minutes = parseInt( c / 60 ) % 60;
var seconds = c % 60;
var result = (hours < 10 ? "0" + hours : hours) + ":" + (minutes < 10 ? "0" + minutes : minutes) + ":" + (seconds < 10 ? "0" + seconds : seconds);
$('#timer').html(result);
if(c == 0 ){
document.getElementById('submit_form').click();
}
c = c - 1;
t = setTimeout(function(){ timedCount() }, 1000);
}
</script>
如何存储计时器值来自javascript自动保存在数据库中的每一分钟。请帮助我编程。
HTML
<h1 class="text-center text_underline"> Timer : <span id='timer'></span> </h1>
每分钟如何在数据库中存储时间值