2017年11月30日
摘要: 1、向上取整,有小数就整数部分加1 Math.ceil(7/2) 2、丢弃小数部分,保留整数部分 parseInt(7/2) 3、四舍五入. Math.round(7/2) 4、向下取整 Math.floor(7/2) 阅读全文
posted @ 2017-11-30 15:02 仔仔爱学习 阅读(198) 评论(0) 推荐(0)