Ext在IE9上报错:对象不支持“createContextualFragment”属性或方法
2013-09-14 16:14
411 查看
在页面中增加下面脚本
<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>
源自 http://forums.ext.net/showthread.php?12837-FIXED-createContextualFragment-error-in-IE9
<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>
源自 http://forums.ext.net/showthread.php?12837-FIXED-createContextualFragment-error-in-IE9
相关文章推荐
- Ext在IE9上报错:对象不支持“createContextualFragment”属性或方法
- Ext在IE9上报错:对象不支持“createContextualFragment”属性或方法
- ext在ie9上报对象不支持“createContextualFragment”属性或方法
- Ext 2.2 在IE9下报错 对象不支持“createContextualFragment”属性或方法
- ExtJs在IE9上报错:对象不支持“createContextualFragment”属性或方法(解决方案)
- EXTJS 2.2版本在IE9中会报错:对象不支持“createContextualFragment”属性或方法
- 解决ie9不支持extjs3.3对象的“createContextualFragment”属性或方法
- EXtjs 解决ie9 不支持extjs对象的 “createContextualFragment”属性或方法
- EXT 错误 对象不支持“createContextualFragment”属性或方法
- Extjs Microsoft JScript 运行时错误: 对象不支持“createContextualFragment”属性或方法
- Extjs: 对象不支持“createContextualFragment”属性或方法
- 对象不支持“createContextualFragment”属性或方法
- 对象不支持“createContextualFragment”属性或方法
- 解决Ext在IE9上报错,createContextualFragment
- 解决Ext在IE9上报错,createContextualFragment
- 音乐页在IE9下不能播放,提示“对象不支持xMusicPlayerPlay属性或方法”。
- Javascript 对象不支持此属性或方法,Object doesn’t support this property or method
- jquery 对象不支持此属性或方法
- 解决document.form.submit()对象不支持此属性或方法
- 对象不支持“abigimage”属性或方法