Bootstrap Table使用分享
发布时间:2020-12-17 20:57:37 所属栏目:安全 来源:网络整理
导读:一、效果展示 二、BootStrap table简单介绍 1 bootStrap table 是一个轻量级的table插件,使用AJAX获取JSON格式的数据,其分页和数据填充很方便,支持国际化 三、使用方法 1、引入js、css 1 2 3 4 5 6 7 8 !--css样式-- link href= "css/bootstrap/bootstrap
一、效果展示
二、BootStrap table简单介绍
三、使用方法 1、引入js、css
1
2
3
4
5
6
7
8
|
<!--css样式-->
<link href=
"css/bootstrap/bootstrap.min.css" ?
rel=
"stylesheet"
>
"css/bootstrap/bootstrap-table.css"?
>
<!--js-->
<script src=
"js/bootstrap/jquery-1.12.0.min.js" ?
type=
"text/javascript"
></script>
"js/bootstrap/bootstrap.min.js"
></script>
"js/bootstrap/bootstrap-table.js"
></script>
"js/bootstrap/bootstrap-table-zh-CN.js"
></script>
|
2、table数据填充
bootStrap table获取数据有两种方式,一是通过table 的data-url属性指定数据源,二是通过JavaScript初始化表格时指定url来获取数据
5
"table"
>
????
<thead>
????????
...
</thead>
</table>