首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

ExtJs在IE9下报错:对象不支持“createContextualFragment”属性或方法(解决方案)转

2012-10-13 
ExtJs在IE9上报错:对象不支持“createContextualFragment”属性或方法(解决方案)转if ((typeof Range ! u

ExtJs在IE9上报错:对象不支持“createContextualFragment”属性或方法(解决方案)转

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;        };    } 

热点排行