为什么要写两个setTimeout?
function timedCount(){ document.getElementById('txt').value=num; num=num+1; i=setTimeout(timedCount,1000); } setTimeout(timedCount,1000); 为什么要写两个setTimeout?
function timedCount(){ document.getElementById('txt').value=num; num=num+1; i=setTimeout(timedCount,1000); } setTimeout(timedCount,1000); 为什么要写两个setTimeout?
2017-08-23
举报