Paging, how does the front end interact with the back end?

I am a rookie front end.

my understanding of paging is as follows:

1. First of all, the backend will do the paging logic (how much data is displayed on a page and how many pages in total)

2. The front-end get requests to get the data of the first page (because the first page is displayed by default when the website is opened)

3. When the user clicks on page 2, I send a post request to the backend (send 2 to the backend)

4. The backend returns the data on page 2 to me, and I am rendering it

I don"t know if my understanding is correct

.
Mar.06,2021
Menu