BootstrapTable的简单使用教程
1.引入必须的几个包 <link th:href="bootstrap/css/bootstrap.css}"/> <link th:href="bootstrap-table/bootstrap-table.css}" /> <script th:src="jquery/jquery.min.js}"></script> <script th:src="bootstrap/js/bootstrap.js}"></script> <script th:src="bootstrap-table/bootstrap-table.js}"></script> <script th:src="bootstrap-table/locale/bootstrap-table-zh-CN.js}"></script> 2.定义一个table <table id="main"></table> 3.写js代码 <script type="text/javascript"> init(); function init(){ $('#example').bootstrapTable({ url: '/init/table', method: 'get', striped: true, toolbar: "#toolbar", sidePagination: "true", striped: true,