分頁公式----分頁 翻頁 序號 序列 編號 自動增長

分頁公式:int total = (int) Math.ceil((總條數+每頁顯示數-1)/每頁顯示數);blog 如:總條數13,每頁顯示3it        int total = (int) Math.ceil((13+3-1)/3);class     分頁序號計算公式:(當前頁-1)*每頁條數+1----> 作第一個編號 而後循環+1; 如: 假設每頁顯示6條;     第一頁: (1
相關文章
相關標籤/搜索