//普通写法
const power = Math.pow(2, 3); // 64
// 简写
const power = 2**3; // 8
使用双星号代替Math.pow()
最新推荐文章于 2023-03-08 12:53:53 发布
//普通写法
const power = Math.pow(2, 3); // 64
// 简写
const power = 2**3; // 8