$(function () {
$('#exampleTable').bootstrapTable({
url: '/data',
method: 'GET',
dataType: 'json',
striped: true,
pagination: true,
pageNumber: 1,
pageSize: 10,
pageList: [10, 25, 50, 100],
search: true,
showColumns: true,
showRefresh: true,
clickToSelect: true,
columns: [{
field: 'name',
title: '姓名'
}, {
field: 'age',
title: '年龄'
}, {
field: 'sex',
title: '性别'
}]
});
});
为你推荐
- 2023-07-25js map.get(JavaScript Map方法使用示例)
- 2023-06-29js option(JavaScript选项优化方案)
- 2023-09-17js 时间戳转换成时间(JavaScript转换时间戳)
- 2023-09-13js 获取天(用JavaScript获取天气情况)
- 2023-07-21js的substring截取字符串(JavaScript substring方法实现字符串截取)
- 2023-08-07js 返回(JavaScript返回函数实现)
- 2023-07-26js compose(JavaScript函数组合简介)
- 2023-08-14js 3des加密(JavaScript实现3DES加密算法)