摘要: 最近做了一个分页的用户控件,使用到了js中的除法。整理如下。 Math.ceil();向上舍入,比如Math.ceil(3/2)=2; Math.floor();向下舍入,比如Math.floor(3/2)=1; Math.round();四舍五入,比如Math.round(3/2)=2;Math. 阅读全文
posted @ 2016-03-31 10:13 冲破天窗 阅读(12822) 评论(0) 推荐(0) 编辑