数组是指定元素,意思就是说一摸一样才行 字符串包含就行
let arr=['10','2'];
let bol=arr.indexOf('1');
let bol1=arr.indexOf('10');
console.log('bol',bol);//-1
console.log('bol1',bol1);//0
数组是指定元素,意思就是说一摸一样才行 字符串包含就行
let arr=['10','2'];
let bol=arr.indexOf('1');
let bol1=arr.indexOf('10');
console.log('bol',bol);//-1
console.log('bol1',bol1);//0