当前位置:网站首页>Calculation method of paging

Calculation method of paging

2022-06-13 08:41:00 zhengqiqiqinqin

1. Calculation method of paging :

pageSize   representative : How many records are displayed per page

pageNow   representative : The current page ( Which page is it now )

pageCount   representative : How many pages are there

pageRow     representative : How many records are there in the database

commonly pageRow You can query it directly from the database :select count(*) from users;

The calculation formula is as follows :

pageCount = ((pageRow-1)/pageSize) + 1

commonly pageSize   It is set by the user

原网站

版权声明
本文为[zhengqiqiqinqin]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202270539149320.html