0

为什么DOMContentLoaded在 Safari (10.1) 中的行为与在其他浏览器 (Chrome/Firefox) 中的行为不同,最好的解决方法是什么?现在我使用 asetTimeout作为一种解决方法,但这会导致其他浏览器中跳跃行为的不良影响......

document.addEventListener("DOMContentLoaded",function() {
    setTimeout(fn,0)
}, false);
4

0 回答 0