文章目录 1. 求幂运算符2. 数组的includes() 1. 求幂运算符 Math.pow(3,2) === 3**2 // 9 2. 数组的includes() [1,2,NaN].includes (NaN) // true [1,2,NaN].indexOf (NaN) //-1 如果仅仅查找数据是否在数组中,建议使用includes() ; 如果是查找数据的索引位置,建议使用indexOf() 更好一些.