bootstrap table 服务端
来源:互联网 发布:java中时间加减 编辑:程序博客网 时间:2024/06/06 00:03
//初始化用户列表 $("#usergroud").bootstrapTable({ method: 'post', url: '/Wx_UserGroup/GetUserInfo', cache: false, height: 600, striped: true, pagination: true, pageSize: 20, pageList: [20, 40, 60, 80, 200], search: false, showColumns: false, showRefresh: false, minimumCountColumns: 2, clickToSelect: false, sidePagination: "server", dataType: "jsonp", //dataType: "json", queryParams: function (e) { var param = { PageSize: e.limit, PageIndex: (e.offset / e.limit) + 1, }; return param; }, responseHandler: function (e) { if (e.data && e.data.Rows && e.data.Rows.length > 0) { return { rows: e.data.Rows, total: e.data.Total }; } else { return { "rows": [], "total": 0 }; } }, columns: [{ field: 'Id', checkbox: true, visible: true }, { field: 'pic', title: '头像', align: 'center', sortable: true, clickToSelect: false, formatter: imageFormatter }, { field: 'name', title: '姓名', align: 'center', sortable: true, clickToSelect: false }, { field: 'sex', title: '性别', align: 'center', sortable: true, clickToSelect: false, formatter: sexFormatter }, { field: 'addr', title: '地址', align: 'center', sortable: true, clickToSelect: false }, { field: 'group', title: '分组', align: 'center', clickToSelect: false //events: operateEvents }] }).on('page-change.bs.table', function (e, size, number) { //console.log(size, number) });});function imageFormatter(value, row, index) { return "<img src='" + value + "' style='width:50px; height:50px;' />";}function sexFormatter(value, row, index) { return value == 1 ? "男" : "女";}
2 0
- bootstrap table 服务端
- bootstrap-table(服务端请求)
- bootstrap table服务端实现分页
- 来自bootstrap table 服务端编程的困惑
- BootStrap-table 客户端分页和服务端分页的区别
- bootstrap-table插件实现ajax服务端分页显示
- node和bootstrap-table实现最简单的服务端分页
- BootStrap -- Table
- Bootstrap Table
- bootstrap--table
- Bootstrap table
- bootstrap-table
- bootstrap table
- Bootstrap Table
- bootstrap table
- bootstrap table
- bootstrap table
- bootstrap table
- openwrt 网络相关配置文件 /etc/config/network /etc/config/wireless
- GRE写作必备句型
- 2012年5月SAT香港真题解析
- 判断双金属带锯条好坏的具体方法
- android 常见分辨率(mdpi、hdpi 、xhdpi、xxhdpi )及屏幕适配注意事项
- bootstrap table 服务端
- [数学]快速幂运算
- 冒泡排序(Bubble sort)
- Photoshop-八步教你设计扁平化图标阴影部分
- JAVA二分递归查找算法
- LR做的HTTPS网站的压力测试(及如何安装openssl)
- android listview + checkbox 列表上下滑动导致复选框状态丢失解决办法
- Android Studio---断点调试和高级调试
- c++中vector的用法详解 转自网络,如有侵权,请速联系,立即删除