//总页数计算方法long totalPage = totalNum % pageSize == 0 ? totalNum / pageSize : totalNum / pageSize + 1;//开始start = (page-1)*pageSize;//结束end = List.size()>=page*pageSize?page*pageSize:blogList.size();
本文共 257 字,大约阅读时间需要 1 分钟。
//总页数计算方法long totalPage = totalNum % pageSize == 0 ? totalNum / pageSize : totalNum / pageSize + 1;//开始start = (page-1)*pageSize;//结束end = List.size()>=page*pageSize?page*pageSize:blogList.size();
转载于:https://blog.51cto.com/9532791/1896923