`
NeverGiveUpToChange
  • 浏览: 43041 次
  • 性别: Icon_minigender_1
社区版块
存档分类
最新评论

Extjs Microsoft JScript 运行时错误: 对象不支持“createContextualFragment”属性或方法

 
阅读更多

Extjs Microsoft JScript 运行时错误: 对象不支持“createContextualFragment”属性或方法 


<script type="text/javascript">
        if ((typeof Range !== "undefined") && !Range.prototype.createContextualFragment) {
            Range.prototype.createContextualFragment = function (html) {
                var frag = document.createDocumentFragment(),
                        div = document.createElement("div");
                frag.appendChild(div);
                div.outerHTML = html;
                return frag;
            };
        }
    </script>

添加上,上面的代码就可以了。
分享到:
评论
1 楼 alranger 2014-09-16  
还是不兼容啊,错误还是会出现

相关推荐

Global site tag (gtag.js) - Google Analytics