分頁計算總頁數的方便技巧

totalPages :總頁數 numFound :總條數 pageSize :每頁顯示條數 long totalPages = (numFound+pageSize-1)/pageSize;
相關文章
相關標籤/搜索