网页学习体会

  • 首页
  • 个人博客
您的位置: 首页  >  IT文章  >  360兼容模式ie10不支持includes方法

360兼容模式ie10不支持includes方法

分类: IT文章 • 2024-01-01 16:54:36

添加includes方法

if (!Array.prototype.includes) {
    Array.prototype.includes = function(search, start) {
        'use strict';
        if (typeof start !== 'number') {
            start = 0;
        }

        if (start + search.length > this.length) {
            return false;
        } else {
            return this.indexOf(search, start) !== -1;
        }
    };
}

相关推荐

  • 360兼容模式ie10及以下版本map对象和Set对象没有定义
  • 360兼容模式ie10不支持includes方法
  • 360浏览器默认使用IE兼容模式解决方法
  • VS和IE或者360兼容模式简单调试js方法
  • 浅谈解决360兼容模式浏览器的方法
  • 后台eWebEditor文本编辑器ie10不能用的解决方法(兼容模式)
  • 360安全浏览器6.0兼容模式修改方法
  • 浅谈解决360兼容模式浏览器的方法
  • Vue-大型项目下路由的模块拆分
  • 【面试加分项】java自己定义注解之申明注解
    网站免责声明 网站地图 最新文章 用户隐私 版权申明
本站所有数据收集于网络,如果侵犯到您的权益,请联系网站进行下架处理。   

Copyright © 2018-2021   Powered By 网页学习体会    备案号:   粤ICP备20002247号