企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
#### Array.prototype.includes > Includes 方法用来检测数组中是否包含某个元素,返回Boolean,[indexOf](https://www.runoob.com/jsref/jsref-indexof-array.html)也可以实现类似功能 ~~~ const mingzu = ['西游记','红楼梦','三国演义','水浒传'] console.log(mingzhu.includex('西游记')) // true ~~~ ~~~ console.log(2**10)      // 1024 console.log(Math.pow(2,10))  // 1024 ~~~ > ES7中引入指数运算符 \*\* ,用来实现幂运算,功能与Math.pow结果相同 #### 指数操作符 \*\*