设计计数器
var num=0;
function startCount() {
document.getElementById('count').value=num;
num=num+1;
setTimeout("startCount()",1000);
}
setTimeout("startCount()",1000);
设计计数器为什么要调用两次 setTimeout("startCount()",1000);
var num=0;
function startCount() {
document.getElementById('count').value=num;
num=num+1;
setTimeout("startCount()",1000);
}
setTimeout("startCount()",1000);
设计计数器为什么要调用两次 setTimeout("startCount()",1000);
2015-11-11
举报