1,定时器setTimeout配合document.write()的输出问题 var index = 0; function fn() {
document.write(index); index++;
setTimeout(fn,1000);
}
fn();请注意,第一个数是1也就是说,把 0 覆盖了,请问一下是什么原因呢?
添加回答
举报
0/150
提交
取消