1.向上取整 Math.ceil()
2.向下取整 Math.floor()
3.只保留整数部分 parseInt()
4.四舍五入 Math.parseInt()
5.取绝对值 Math.abs()
6.返回两个数中的最大的数 Math.max(),返回最小的是Math.min()
7.随机数
1.向上取整 Math.ceil()
2.向下取整 Math.floor()
3.只保留整数部分 parseInt()
4.四舍五入 Math.parseInt()
5.取绝对值 Math.abs()
6.返回两个数中的最大的数 Math.max(),返回最小的是Math.min()
7.随机数