function reload(){
alert("ce");
}
window.onload=function(){
alert("a");
setInterval("reload()",1000);
document.write("aaa");
};
如上,同时有 setInterval 和 document.write在其他极速浏览器,chrome内核浏览器里没有问题。但是在 IE11 浏览器里,setInterval 就会停止。怎么解决。谢谢。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
document.write会隐式调用document.open。这样会重构document,移除所有event事件和task。
可以用document.body.innerText代替document.write