概述:
1、Array.prototype.includes方法用来检测数组中是否包含某个元素,返回布尔类型值;语法:arr.includes(元素值);
2、指数操作符,功能与 Math.pow 结果相同;幂运算的简化写法,例如:2的10次方:210;
Array.prototype.includes代码示例:
includes
指数操作符代码示例:
指数操作符
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/210342.html原文链接:https://javaforall.net
