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

解决ie9 不支持extjs3.3对象的 “createContextualFragment”属性或步骤

2012-09-09 
解决ie9 不支持extjs3.3对象的 “createContextualFragment”属性或方法在页面中添加如下Js代码即可if ((typ

解决ie9 不支持extjs3.3对象的 “createContextualFragment”属性或方法

在页面中添加如下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;         };     }

?原文:http://www.sencha.com/forum/showthread.php?125869-Menu-shadow-probolem-in-IE9&p=579336

?

热点排行