js取整方法

Math.ceil() 向上取整

Math.floor() 向下取整

Math.round() 四舍五入

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