js取整方法

Math.ceil() 向上取整

Math.floor() 向下取整

Math.round() 四舍五入

原文地址:https://www.cnblogs.com/web-record/p/12167183.html