分页计算总页数的方便技巧

totalPages :总页数 numFound :总条数 pageSize :每页显示条数 long totalPages = (numFound+pageSize-1)/pageSize;
相关文章
相关标签/搜索