2019年11月28日

【es6】es6使用集锦

摘要: 一、查找数组中是否包含某个元素 使用includes ,返回值为布尔值 arr.includes(searchElement, fromIndex); 解析:searchElement 查询元素 fromIndex 开始查找的索引位置 demo: 二、合并对象 使用Object.assign() 阅读全文

posted @ 2019-11-28 11:09 smile轉角 阅读(155) 评论(0) 推荐(0) 编辑

导航