您的位置:首页 > Web前端 > JavaScript

解决Ext在ie9报错:不支持extjs对象的“createContextualFragment属性或方法

2019-03-26 10:10 369 查看

把下面的代码放入js文件的头部

        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;

            };

        }

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  Prototype ExtJS
相关文章推荐