ueditor在ie8保存对象不支持“indexOf”属性或方法

快来打我* 2022-01-22 08:01 590阅读 0赞

IE8不支持数组判断indexOf,把代码

  1. if (whitList[tagName].indexOf(key) === -1) {
  2. node.setAttr(key);
  3. }

换成

  1. if($.inArray(key, whitList[tagName])==-1){
  2. node.setAttr(key);
  3. }

发表评论

表情:
评论列表 (有 0 条评论,590人围观)

还没有评论,来说两句吧...

相关阅读

    相关 IE支持remove()方法

    前言 今天在做项目的过程中遇到remove在IE浏览器不支持,通过查看其它博文,发现IE只支持removeNode方法。因此得到解决,将其整理成博文,希望可以帮到更多人。