JS的ES7支持

1.指数运算符(幂): **

2.Array.prototype.includes(value) : 判断数组中是否包含指定value

1 console.log(2**4); //16
2 
3 let arr = [2,3,4,5,7,8];
4 console.log(arr.includes(1)); //false
5 console.log(arr.includes(3)); //true

 

posted @ 2019-12-20 10:43  All_just_for_fun  阅读(651)  评论(0编辑  收藏  举报