How do I paging the news list under a certain topic in the news system ?? For example, if you add an article to a list page of 0 to, how do you paging the news list under a certain topic of the news system ??
For example, if a topic contains 100 articles and 20 articles per page
Page1.htm 81-100 records
Page2.htm 61-80
Page3.htm 41-60
Page4.htm 21-40
Page5.htm 0-20
Five such list pages. If an article is added, the page is changed to six,
Page1.htm 82-101 records
Page2.htm 62-81
Page3.htm 42-61
Page4.htm 22-41
Page5.htm 2-21
Page6.htm 0-1
In this way, all list pages need to be regenerated. it doesn't matter when there are few records. if there are many records with thousands of pages, do you need to regenerate all pages when adding a new one? This will consume a lot of resources.
I don't want to use pseudo-static methods. What are some good ideas ,?
------ Solution --------------------
Page5.htm 81-100 records
Page4.htm 61-80
Page3.htm 41-60
Page2.htm 21-40
Page1.htm 0-20
In the page navigation, only the next page of the previous page and js jump are allowed.
Come on, eat tofu ~