JavaScript中的Math 使用介绍
发布时间:2016-12-30 来源:查字典编辑
摘要:复制代码代码如下:Math.pow(2,53)//=>9007199254740992:2的53次幂Math.round(.6)//=>1....
复制代码 代码如下:
Math.pow(2,53) //=>9007199254740992: 2 的53次幂
Math.round(.6) //=>1.0: 四舍五入