计算页数

int pageCount = (recordCount - 1) / pageSize + 1;
 
(30-1)/5 + 1 = 6
(31-1)/5 + 1 = 7
(29-1)/5 + 1 = 6
posted @ 2012-05-07 17:49  CoderWayne  阅读(415)  评论(0编辑  收藏  举报