变量定义:
算法代码:
result=(total-1)/size+1
常用方法:
result=math.ceiling(total/size)
通俗方法:
result=total/size; if(total%size!=0)result++;
简单实用算法—获取分页总页码
原文:https://www.cnblogs.com/timefiles/p/AlgorithmGetPages.html