除了调用Math库中的pow方法,js中还可以用双乘号表示幂运算 **
let a = 2 ** 3 //表示2的3次方console.log(a) //8
let a = 2 ** 3 //表示2的3次方
console.log(a) //8
若有收获,就点个赞吧
0 人点赞
让时间为你证明