The bootstrap table encapsulates a complete set of data table components, copying the following code to estimate the basic functionality you need, and not having a look at the manual can be quickly familiar with the example I gave.
Client
It is to be noted that
1, bootstrap table can be the front page pagination can also be back-end pagination, where we use the back-end pagination, back-end pagination needs to return containing
Total : number of records this key seems to be fixed, I see the document is not found can be modified to other
rows: Record Collection key values can be modified DataField you define yourself as you want.
{"Total
": "
Rows": [
{"id": 1, ' name ': ' Sallency ', ' Age ':},
{"id": 1, "name": "Sallency", "Age": (
{"id": 1, "name": "Sallency", "Age":},
{"id": 1, "name": "Sallency", "Age":},
{"id": 1, "name": " Sallency "," Age ":}]
}
As on the JSON data (of course my foreground set the expected data type is json,php directly encode a ["Total" =>200, "Rows" =>[[],[],][,][,] "The array is done, convenient)
2, and its request backend is the content format passed by default for Application/json I am accustomed to using convenient x-www-form-urlencoded
If you want to further study, you can click here to learn, and then attach 3 wonderful topics:
Bootstrap Learning Course
Bootstrap Practical Course
Bootstrap Table Use Tutorial
Bootstrap Plugin Usage Tutorial
The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.