fastAdmin的bootstrap-table表格批量操作按钮(获取当前选中的数据)
一、代码如下
//点击全选框时触发的操作
onCheckAll:function(row){
var checkedbox= $("#table").bootstrapTable('getSelections'); //获取选中的数据
},
//取消所有
onUncheckAll: function (row) {
var checkedbox= $("#table").bootstrapTable('getSelections');
},
//点击行前面的选择框
onCheck:function(row,$element){
var checkedbox= $("#table").bootstrapTable('getSelections');
},
onUncheck:function(row,$element){
var checkedbox= $("#table").bootstrapTable('getSelections');
}