Is this plug-in for paging done by the front desk? Did you search all database data during initialization? The server is under great pressure, how to solve it?
2. Then specify the number of results displayed on each page
pageSize: 10, //每页的记录行数(*)
Complete the above code to realize automatic paging on the server side. Bootstrap-table is assigned a value based on the total,以及table设定的pageSize,自动生成分页的页面元素,每次点击下一页或者指定页码,bootstrap-table会自动给参数pageNumber returned by the server side, and the server returns the data of the specified page.
1. In the initialization, you can use the value of
sidePagination
to determine whether it is front-end paging or back-end paging.2. Then specify the number of results displayed on each page
Complete the above code to realize automatic paging on the server side. Bootstrap-table is assigned a value based on the
total
,以及table设定的pageSize
,自动生成分页的页面元素,每次点击下一页或者指定页码,bootstrap-table会自动给参数pageNumber
returned by the server side, and the server returns the data of the specified page.Please check the API for the server code