bootstrap-table:轻松实现复杂表头
2019-06-19 09:01
267 查看
版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/Baby_pw/article/details/92803054
1.效果图
2.实现方法
[code] <div class="col-sm-12 select-table table-bordered"> <table id="bootstrap-table" data-mobile-responsive="true"></table> </div> $(function () { var options = { url: prefix + "/list", escape: true, showPageGo: true, rememberSelected: true, columns: [[ { title: '销售大区', align: 'center', rowspan: 3 }, { title: '区域', align: 'center', rowspan: 3 }, { title: '经销商', align: 'center', rowspan: 3 }, { title: '期前欠款', align: 'center', colspan: 4 }, { title: '2016年发车数量', align: 'center', rowspan: 3 }, { title: '2016年销售明细', align: 'center', colspan: 12 }, { title: '账上目前预付款', align: 'center', rowspan: 3 }, { title: '截止2016年欠款', align: 'center', rowspan: 3 }, { title: '2016收款', align: 'center', rowspan: 3 } ], [{ field: 'userPhone', title: '销售发车', align: "center", colspan: 3 }, { field: 'userEmail', title: '款转为2017年预付款', align: "center", rowspan: 2 }, { field: 'userBalance', title: '2016年合同货值', align: "center", colspan: 3 }, { field: 'status', title: '其他费用', align: "center", colspan: 3 }, { title: '代付运费', align: 'center', colspan: 3 }, { title: '2016年货后客户逾期)', align: 'center', colspan: 3 } ], [{ field: 'userPhone', align: "center", title: '应收' }, { field: 'userEmail', align: "center", title: '实收' }, { field: 'userBalance', align: "center", title: '欠款' }, { field: 'status', align: "center", title: '应收' }, { align: 'center', title: '实收' }, { field: 'userPhone', align: "center", title: '欠款' }, { field: 'userEmail', align: "center", title: '应收' }, { field: 'userBalance', align: "center", title: '实收' }, { field: 'status', align: "center", title: '欠款' }, { field: 'status', align: "center", title: '应收' }, { field: 'userPhone', align: "center", title: '实收' }, { field: 'userEmail', align: "center", title: '欠款' }, { field: 'userBalance', align: "center", title: '应收' }, { field: 'status', align: "center", title: '实收' }, { field: 'status', align: "center", title: '欠款' } ] ] }; $.table.init(options); });
相关文章推荐
- Bootstrap-table:轻松实现多层表头
- bootstrap-table组合表头的实现方法
- bootstrap-table实现表头固定以及列固定的方法示例
- 基于Bootstrap table组件实现多层表头的实例代码
- ASP.NET 2.0中GridView无限层复杂表头的实现
- table实现表头不动,而数据滚动操作
- JS组件系列——BootstrapTable+KnockoutJS实现增删改查解决方案(三):两个Viewmodel搞定增删改查
- JS组件系列——BootstrapTable+KnockoutJS实现增删改查解决方案(一)
- JavaScript实现两个Table固定表头根据页面大小自行调整
- 使用nodejs,express,mysql,Bootstrap开发采购招标网站(三)Bootstrap-table实现Ajax删除数据
- 项目框架搭建 FrameLayout+RadioGroup+TableLayout+ 实现复杂界面布局
- JS组件Bootstrap Table表格多行拖拽效果实现代码
- 教大家轻松制作Bootstrap漂亮表格(table)
- jQuery实现带分组数据的Table表头排序实例分析
- Asp.net中表头合并 复杂表头实现
- ASP.NET 2.0中GridView无限层复杂表头的实现
- RDLC 矩阵实现复杂统计(复合表头)
- 轻松玩转BootstrapTable(后端使用SpringMVC+Hibernate)
- ASP.NET2.0中GridView无限层复杂表头的实现
- ASP.NET 2.0中GridView无限层复杂表头的实现