BootStrap Table 获取同行不同列元素的方法
2016-12-19 17:21
706 查看
表格同行中存在元素的相互调用,如何保证元素能够被同行不同列的其他方框使用,方法如下:
页面元素示例如下:
<div id="MyTableId" class="content-main-container"> <div class="panel panel-primary gd-panel" id="mywindow"> <div class="panel-heading"> <b>TableNameElemnt</b> </div> <div class="panel-body"> <table class="table table-bordered" id="csMemberPackageTable" style="word-break: keep-all;"> </table> </div> </div> </div>
页面 JS 代码示例如下:
$(function () { $('#MyTableId').bootstrapTable('destroy'); $("#MyTableId").bootstrapTable({ url:'/*** /*** Action_*** List.action', dataType: "json", showRefresh: true, striped: true, cache: true, undefinedText: "-", sortName: "id", sortOrder: "asc", pagination: true, sidePagination: "server", toolbar: "#toolbar", pageNumber:1, pageSize:3, smartDisplay:true, pageList:[5,10,25,50], paginationPreText: "上一页", paginationNextText: "下一页", columns: [{ checkbox: true }, { field:'pId', title:'操作', align:'center', formatter:function(value,row,index){ var aId = row.aId; var bId = row.bId; var cId = row.cId; var a = '<a href="/**** /**** Action_**** GoJsp.action?ResObj.' + 'pId='+pId+'&ResObj.aId='+aId + '&ResObj.bId='+bId+ '&ResObj.cId='+cId+ '"'+'class="cs_menuTab"> 编辑全部 Id </a>'; return a; } },{ field: "aId", title: "A 标签", align: "center" }, { field: "bId", title: "B 标签", align: "center" }, { field: 'cId', title: 'C 标签', align: 'center' }] }); });
以上所述是小编给大家介绍的BootStrap Table 获取同行不同列元素的方法,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对脚本之家网站的支持!
您可能感兴趣的文章:
相关文章推荐
- BootStrap Table 获取同行不同列元素
- js与jquery获取父元素,删除子元素的两种不同方法
- js与jquery获取父元素,删除子元素的不同方法
- js与jquery获取父元素,删除子元素的两种不同方法
- js与jquery获取父元素,删除子元素的不同方法
- Java在不同环境下获取当前路径的方法--this.getClass().getResource("")
- JavaScript获取HTML DOM节点元素的方法的总结
- Java在不同环境下获取当前路径的方法
- JavaScript获取HTML DOM节点元素的方法的总结
- .net 2.0 中对于非服务器端的input元素 type为file后台无法获取的问题的解决方法
- c/vc++ 环境下不同的文件长度获取方法
- Java在不同环境下获取当前路径的方法--this.getClass().getResource("")
- java中获取不同时间格式的方法
- 获取HTML DOM节点元素的方法的总结
- Js 获取HTML DOM节点元素的方法小结
- Js 获取HTML DOM节点元素的方法小结
- JavaScript获取HTML DOM节点元素的方法的总结
- Java在不同环境下获取当前路径的方法
- 使用不同方法输出一维整型数组a的各元素
- c/vc++ 环境下不同的文件长度获取方法