JavaScript中的Math 使用介绍

(编辑:jimmy 日期: 2024/10/9 浏览:2)

复制代码 代码如下:
Math.pow(2,53) //=>9007199254740992: 2 的53次幂
Math.round(.6) //=>1.0: 四舍五入