function reload(){ alert("ce");}window.onload=function(){ alert("a"); setInterval("reload()",1000); document.write("aaa");};如上,同时有 setInterval 和 document.write在其他极速浏览器,chrome内核浏览器里没有问题。但是在 IE11 浏览器里,setInterval 就会停止。怎么解决。谢谢。
1 回答

翻过高山走不出你
TA贡献1875条经验 获得超3个赞
document.write会隐式调用document.open。这样会重构document,移除所有event事件和task。
可以用document.body.innerText代替document.write
function reload(){
alert("ce");
}
window.onload=function(){
alert("a");
setInterval("reload()",1000);
document.body.innerText = "aaa";
};
添加回答
举报
0/150
提交
取消