摘要: 、判断是否存在某个值 1、Array.prototype.indexOf() indexOf()方法返回在数组中可以找到一个给定元素的第一个索引,如果不存在,则返回-1。 const beasts = ['ant', 'bison', 'camel', 'duck', 'bison']; conso 阅读全文
posted @ 2022-08-17 16:38 新新新新新手 阅读(2152) 评论(0) 推荐(0)