JS中的数学计算<之简单实例讲解>
摘要:
1.取余数 % 2.取绝对值 Math.abs() 3.截取小数点后长度并进行四舍五入 toFixed() 4.取最小值 Math.min() 5.取最大值 Math.max() 6.指数计数法 和 截取数字固定长度 toPrecision() 7.把一个数字舍入为最接近的整数 round() 阅读全文
posted @ 2015-08-08 14:44 qize 阅读(5015) 评论(0) 推荐(0)

浙公网安备 33010602011771号