摘要: js中Math.round、parseInt、Math.floor和Math.ceil小数取整总结 Math.round、parseInt、Math.floor和Math.ceil 都可以返回一个整数,具体的区别请看下面的总结。 一、Math.round 作用:四舍五入,返回参数+0.5后,向下取整 阅读全文
posted @ 2018-02-06 22:41 coael 阅读(248) 评论(0) 推荐(0) 编辑