1.Math.round 四舍五入取整
Math.round(1.22) //1
Math.round(1.58) //2
2.Math.ceil 向上取整
Math.ceil(1.22) //1
Math.ceil(1.58) //2
3.Math.floor 向下取整
Math.floor(1.22) //1
Math.floor(1.58) //1
1.Math.round 四舍五入取整
Math.round(1.22) //1
Math.round(1.58) //2
2.Math.ceil 向上取整
Math.ceil(1.22) //1
Math.ceil(1.58) //2
3.Math.floor 向下取整
Math.floor(1.22) //1
Math.floor(1.58) //1