我想为倒计时开始,当用户输入一些时间在00:00:00 hms格式的项目倒计时,我写了一些代码一半是正确的,我失去了未来 // Wait for user to click the button before reading the value
window.onload=function(){
\t var work = document.getElementById("dl");
所以我做了一个函数来确定我要多久等到巴斯到达: function arrival(arrtime){
//convert to seconds
function toSeconds(time_str) {
// Extract hours, minutes and seconds
var parts = time_str.split('