方法一
//总页数=(总记录数+每页行数-1)/每页行数
intPageCount = (intRowCount+intPageSize-1) / intPageSize;
方法二
//总记录数与每页显示记录数求余运算,计算总页数
setTotalpage(this.totalrecord % this.maxresult == 0 ? this.totalrecord / this.maxresult : this.totalrecord / this.maxresult + 1);
//总页数=(总记录数+每页行数-1)/每页行数
intPageCount = (intRowCount+intPageSize-1) / intPageSize;
方法二
//总记录数与每页显示记录数求余运算,计算总页数
setTotalpage(this.totalrecord % this.maxresult == 0 ? this.totalrecord / this.maxresult : this.totalrecord / this.maxresult + 1);
版权声明:本文为Java__chuchu原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。