js取整方法

Math.ceil() 向上取整

Math.floor() 向下取整

Math.round() 四舍五入

posted @ 2020-01-08 16:05  一抹夏忧☆  阅读(920)  评论(1编辑  收藏  举报