目录
- includes方法用来判断一个数组是否包含一个指定的值,如果是返回true,否则返回false
let side=['runoob','google','taobao'];
var result1=side.includes('runoob');
var result2=side.includes('baidu');
console.log(result1);//true
console.log(result2);//false