Bootstrap table client paging instance, bootstraptable
I. Preface
Bootstrap-table is a convenient and easy-to-use front-end table paging plug-in. Users only need to provide data sources to achieve a perfect paging effect. The paging mode can be divided into client paging and server paging, the data sources it receives are in json data format. Server paging is widely used in projects, but sometimes client paging is also required to speed up paging and accelerate paging browsing efficiency. This blog does not introduce server paging. It only provides simple examples of bootstrap-table client paging (the data source is also obtained from the front end) for beginners to understand and use.
Ii. Instances
<Title> bootstrap-table client page </title> <link rel = "stylesheet" href = ". /bootstrap/css/bootstrap/bootstrap.css "rel =" external nofollow "/> <link rel =" stylesheet "href = ". /bootstrap-table/bootstrap-table.css "rel =" external nofollow "/> <script src = ". /jquery. min. js "> </script> <script src = ". /bootstrap/js/bootstrap. js "> </script> <script src = ". /bootstrap-table/bootstrap-table.js "> </script> <script src = ". /bootstrap-table/bootstrap-table-export.js "> </script> <script src = ". /extends/tableExport/jquery. base64.js "> </script> <script src = ". /extends/tableExport. js "> </script>
Iii. Summary
1. The bootstrap-table client page can be implemented in just a few steps: Introduce js and css of bootstrap; add a table tag on the html page and assign a value to the id; add initialization code to js;
2. the bootstrap-table client paging data source can be transmitted by the server or obtained by the front-end js. This instance uses the front-end js data source, and the initialization parameter needs to be added with data, remove the url;
3. Download the blog instance
The above is all the content of this article. I hope it will be helpful for your learning and support for helping customers.