const arr = [1,2,3,4,5,6] console.log(arr.includes(4)) //true
es7中数组如何判断元素是否存在
猜你喜欢
转载自www.cnblogs.com/qjb2404/p/12231119.html
今日推荐
周排行