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