首页
学习
活动
专区
圈层
工具
发布

ES5详解_es6配置表

得到值在数组中的第一个下标 Array.prototype.lastIndexOf(value) : 得到值在数组中的最后一个下标 例题 const persons = ['SunWuKong','TangSeng','ZhuBaJie...4.2 forEach ---- 用来遍历数组,参数为回调函数,回调函数有两个参数 数组中的元素 元素的下标 例题 const persons = ['SunWuKong','TangSeng','ZhuBaJie...遍历数组返回一个新的数组,不改变原数组,返回加工之后的值,参数为回调函数,回调函数有两个参数 数组中的元素 元素的下标 例题 const persons = ['SunWuKong','TangSeng','ZhuBaJie...遍历过滤出一个新的子数组,不改变原数组, 返回条件为true的值,参数为回调函数,回调函数有两个参数 数组中的元素 元素的下标 例题 const persons = ['SunWuKong','TangSeng','ZhuBaJie

45720
  • 您找到你想要的搜索结果了吗?
    是的
    没有找到
    领券