ie6或ie8下,UEditor中出错document.body为空或不是对象解决办法

百度的ueditor在IE6或IE8中提示:
行: 13384
错误: 'document.body' 为空或不是对象
ie6或ie8下,UEditor中出错document.body为空或不是对象解决办法

原因为:
document还没有加载完全,就执行了editor_all.js
解决办法:
在初始化UEditor时,在外面套上一层
  $(document).ready(function(){})
如图所示
ie6或ie8下,UEditor中出错document.body为空或不是对象解决办法_第1张图片
类似地,在其它的遇到在IE6或IE8中也出现document.body为空或不是对象,也采取该解决办法。

你可能感兴趣的:(ie6或ie8下,UEditor中出错document.body为空或不是对象解决办法)