目录结构:
案例1:
<!DOCTYPE html
>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>Insert title here
</title>
<script
type=
"text/javascript"
src=
"js/bootstrap-table.js"
></script>
<script
type=
"text/javascript"
src=
"js/bootstrap-table-zh-CN.js"
></script>
<link
href=
"css/bootstrap-table.css"
>
</head>
<body>
<p>通过Data属性的方式,无需编写JavaScript启用bootstrap table, 设置 data-toggle="table" 即可
</p>
<div
class=
"alert alert-danger"
>
<p>1.这种方式不太常用,因为分页不方便
</p>
</div>
<table
data-toggle=
"table"
>
<thead>
<tr>
<th>Item ID
</th>
<th>Item Name
</th>
<th>Item Price
</th>
</tr>
</thead>
<tbody>
<tr>
<td>1
</td>
<td>Item 1
</td>
<td>$1
</td>
</tr>
<tr>
<td>2
</td>
<td>Item 2
</td>
<td>$2
</td>
</tr>
</tbody>
</table>
</body>
</html>