-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtable.js
36 lines (34 loc) · 838 Bytes
/
table.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
$(function () {
$("#table").bootstrapTable({
url: './user.json',
search: true,
searchAlign: 'right',
toolbar: '#toolbar',
pagination: true,
pageSize: 30,
pageList: [30, 50, 100],
showToggle: true,
showColumns: true,
clickToSelect: true,
columns: [
{
checkbox: true
},
{
field: "uid",
title: "用户ID",
align: "center"
},
{
field: "username",
title: "用户名",
align: "center"
},
{
field: "tele",
title: "tele",
align: "center"
}
]
})
})