var jurisdiction = [1,2,3,4,5,6];
console.log(jurisdiction.includes('6'))//存在返回true,不存在false
js判断一维数组存在某个值
于 2021-12-06 15:10:45 首次发布
var jurisdiction = [1,2,3,4,5,6];
console.log(jurisdiction.includes('6'))//存在返回true,不存在false