摘要: includes() 该方法可以用检测数组中是否包含某个值 const testArray = [1,2,3,4,5] console.log(testArray.includes(1)) 输出 true 该方法可接收第二个参数作为搜索的起始位置 const testArray = [ 1 , 2 阅读全文
posted @ 2020-02-28 10:05 卑微小吴 阅读(8328) 评论(0) 推荐(0)