javascript - bootstrap-table pagination issue - Stack Overflow
过去多啦不再A梦
过去多啦不再A梦 2017-05-19 10:46:52
0
1
645

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?

过去多啦不再A梦
过去多啦不再A梦

reply all(1)
習慣沉默

1. In the initialization, you can use the value of sidePagination to determine whether it is front-end paging or back-end paging.

sidePagination: "server",   //分页方式:client客户端分页,server服务端分页

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.

Please check the API for the server code

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template