摘要: 1.js判断一个元素是否在数组中 (1).let arr = [1,2,3]; arr.includes(1) // true arr.includes(5) //false (2).a=["1", "3", "2", "3", "0"]; console.log(a.indexOf ('3')); 阅读全文
posted @ 2021-05-27 13:45 Running°つ 阅读(1025) 评论(0) 推荐(0) 编辑