草庐IT

javascript - 脚本错误 : Unable to modify the parent container element before the child element is closed

coder 2024-12-16 原文

脚本错误:在关闭子元素之前无法修改父容器元素。我应该怎么办?我单击"is",但未显示我的网页。

在我的产品页面代码的开头,我有:http://pastebin.com/iiUfMq1v

除 IE8 外,所有浏览器都运行良好,IE8 是唯一会抛出任何类型错误的浏览器。

有什么想法吗?

最佳答案

请检查这些链接

http://answers.microsoft.com/en-us/ie/forum/ie8-windows_other/html-parsing-error-unable-to-modify-the-parent/e64759e0-d344-42d6-b1d8-0ce27504dd71

http://afewguyscoding.com/2010/03/message-html-parsing-error-unable-to-modify-the-parent-container-element-before-the-child-element-is-closed-kb927917/

基本上,当您尝试通过作为当前元素的父元素的 javascript 更新元素或该元素根本不呈现时,就会发生这种情况。我遇到了这个问题并通过在页面加载后运行脚本来解决。即在 $(document).ready()

希望这对某人有帮助..

关于javascript - 脚本错误 : Unable to modify the parent container element before the child element is closed,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13731921/

有关javascript - 脚本错误 : Unable to modify the parent container element before the child element is closed的更多相关文章

随机推荐