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

来源:互联网 发布:网络剧发行方式 编辑:程序博客网 时间:2024/05/29 19:41

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

原创粉丝点击