得到bootstrap选择的字段

来源:互联网 发布:绘制平面图软件 编辑:程序博客网 时间:2024/05/29 09:08

截取部分配置文件

 uniqueId: "id",      //每一行的唯一标识,一般为主键列
                toolbar: "#toolbar",
             toolbarAlign: 'left',
                columns: [
                    {
                      title: "全选",//标题
                        width: 60,//宽度
                        align: "center",//水平
                      //  field: "id",不用写
                        checkbox: true,
                        valign: "middle"//垂直
                      
                    },
                    {
                        field: "id",
                        title: "id",
                        sortable: true

                    },
                    {
                        field: "DeviceName",
                        title: "DeviceName",
                        sortable: true
                    }
                ],

 

 

 

 

$('#mytab').bootstrapTable('getSelections')返回的是数组,循环去取对象的相关属性,

0 0
原创粉丝点击