js判断一个元素是否在数组中1.indexOf返回包含字符串的位置,返回-1代表数组中不存在arr.indexOf('a')2.includes返回true falsearr.includes('a')