bootstrap_table实现实现多选及获取值

1.设置列表头
 {field: 'selectItem', checkbox: true},
2.获取选中项
var selected = $('#' + this.id).bootstrapTable('getSelections');
var aa=selected[0].id;
var ids = new Array();
or(var i=0;i<selected.length;i++){
ids[i]=selected[i].id;
}

猜你喜欢

转载自blog.csdn.net/amy1213272092/article/details/80832060