document.getElementById('dvFile').innerHTML += txt; Internet Explorer 7 不工作
最佳答案
我认为,您名为dvFile的对象对于innerHTML来说是错误的类型。 dvFile 不得代表任何类型的输入。
检查以下有效脚本。
<script>
function setTimeout_Testing()
{
count = 1;
document.getElementById("writeMe").innerHTML += count;
}
setTimeout("setTimeout_Testing();", 1000);
</script>
<div id="writeMe"></div>
http://www.ppshein.net/index.cfm/2010/10/18/different-between-settimeout-and-setinterval
关于javascript - document.getElementById ('dvFile' ).innerHTML += txt;,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4012379/