摘要: 1.indexOf() -> ES5:返回索引,大于0则存在,-1不存在 const array = ['apple', 'banance', 'orange'] array.indexOf('apple') // 0 存在 array.indexOf('strawBerry') // -1不存在 阅读全文
posted @ 2021-01-03 17:09 leahtao 阅读(1526) 评论(0) 推荐(0)