bootstrapTable的使用
来源:互联网 发布:linux mysql 停止 编辑:程序博客网 时间:2024/06/14 15:44
引用
<link href="../../assets/css/bootstrap.min.css" rel="stylesheet"><script src="../../js/jquery.min.js"></script><script src="../../assets/js/dataTables.bootstrap.min.js"></script><link href="../../assets/css/bootstrap-table.css" rel="stylesheet" /><script type="text/javascript" src="../../assets/js/bootstrap-table.js"></script><script type="text/javascript" src="../../assets/js/bootstrap-table-zh-CN.js"></script>
table组件
<table class="table table-hover table-bordered table-striped text-nowrap" id="httpdnsResult" style="height: 100%;"> <thead></thead> <tbody></tbody></table>
加载bootstrapTable
$('#httpdnsResult').bootstrapTable({ url : condition, method : 'post', contentType : "application/x-www-form-urlencoded", locale : 'zh-CN', pagination : true, pageNumber : 1, pageSize : 10, pageList : [ 10, 20, 50, 100 ], sidePagination : "client", showRefresh : true, search : true, strictSearch : false, showColumns : true, sortable : true, sortOrder : 'asc', showToggle : true, showExport : true, //是否显示导出按钮 exportDataType : 'all', buttonsAlign : "right", //按钮位置 exportTypes : [ 'excel' ], //导出文件类型 Icons : 'glyphicon-export', exportOptions : { fileName : 'httpdns数据', //文件名称设置 worksheetName : 'sheet1', //表格工作区名称 tableName : 'httpdns数据' }, columns : [ { title : '序号', field : 'num', }, { title : 'appName', field : 'appName', }, { title : 'netWorkType', field : 'netWorkType', }, { title : 'client', field : 'client', }, { title : 'time(点击排序)', field : 'time', sortable : true, sortName : 'originalTime' }] })
表格数据加载成功
$("#httpdnsResult").on('load-success.bs.table',function() { //加载成功后操作}
阅读全文
0 0
- bootstrapTable的使用
- 关于BootstrapTable的使用
- Bootstrap结合BootstrapTable的使用
- BootstrapTable使用
- 基于SSH的BootstrapTable插件使用小记
- bootstrapTable和mui中表格的使用
- bootstrapTable 使用范例
- bootstrapTable使用例子
- bootstrapTable 着色使用
- 使用 BootstrapTable 实现数据的分页显示(一)
- 使用 BootstrapTable 实现数据的分页显示(二)
- bootstraptable的 showFooter属性
- bootstrapTable的参数设置
- bootstrapTable
- bootstrapTable 插件使用注意点
- 基于BootstrapTable的简单应用
- bootstraptable的加载刷新数据
- 扩展BootstrapTable的treegrid功能
- CSDN日报20170727——《想提高团队技术,来试试这个套路!》
- 3252. Round Numbers
- 合并游戏 737(区间Dp
- shell中curl 用法详解 (二)
- 2017多校训练赛第二场 HDU 6053 TrickGCD(容斥原理/莫比乌斯反演)
- bootstrapTable的使用
- sklearn错误解决:ValueError: Class label 0 not present
- C/C++ | 23-12 用指针的方法,将字符串“ABCD1234efgh”前后对调显示
- 关于easyUI datagrid、layout动态改变大小使用的方法
- 常见OJ评判结果对照表,作为ACMer你懂得!
- 使用Rancher创建负载均衡的容器应用
- 八大排序算法java
- [PAT乙级]1016. 部分A+B (15)
- Trailing Zeroes (III) (二分法)