How many pages are calculated

xiaoxiao2021-03-06  54

Usually, how many pages are you needed to tell the user in the list page, the following is the simplest method, at least I can think of ^ - ^:

Totalpage = (count globalconst .page_size -1) / globalconst .page_size;

Where COUNT is the current total number of records.

转载请注明原文地址:https://www.9cbs.com/read-117019.html

New Post(0)