eWebEditor浏览器兼容问题 ie8 ie7

使eWebEditor浏览器兼容 ie8 ie7

eWebEditor在ie8不显示

打开Include下的Editor.js,

找到 if (element.YUSERONCLICK) eval(element.YUSERONCLICK + "anonymous()");  

替换成:

if(navigator.appVersion.match(/8./i)=='8.')
{
if (element.YUSERONCLICK) eval(element.YUSERONCLICK + "onclick(event)");
}
else

{
if (element.YUSERONCLICK) eval(element.YUSERONCLICK + "anonymous()");
}

ie8不支持anonymous方法。所以ie8时y用onclick。

好吧,ie6还有亲们用么?不知道。基本大家都ie8了吧。。。。。

相关文章:

  • 2021-05-26
  • 2022-02-04
  • 2022-12-23
  • 2021-07-23
  • 2021-11-11
  • 2022-12-23
  • 2022-12-23
  • 2022-03-05
猜你喜欢
  • 2021-06-24
  • 2022-12-23
  • 2021-08-27
  • 2021-07-29
  • 2022-01-25
相关资源
相似解决方案