zoukankan      html  css  js  c++  java
  • IE8 下 HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)

    今天在写一组 js操作div 的方法时遇到 IE8 的错误提示:HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)

    在 IE8 以下版本的IE中报   Internet Explorer无法打开internet站点文件.操作终止

    根据IE8的错误提示来看,应当是元素尚未加载完必时对其进行了操作。

    于是我在js中加入了 setTimeout("XXXX()",1000);,使其获得足够的加载时间后执行目标(XXXX)的function,于是问题得到解决

    还有一种方法是在网上搜得  即判断document.readyState  当其为complete时,执行操作

    KidYang
  • 相关阅读:
    L7-1 文本处理
    L6-14 继承多态
    L6-13 魔法方法
    L6-12 类的实例
    L6-11 综合运用
    L6-2 嵌套循环
    golang 关于引用类型
    golang close for channel
    go tip
    vscode官方文档
  • 原文地址:https://www.cnblogs.com/EasyLive2006/p/1386723.html
Copyright © 2011-2022 走看看