// table中加复选框
{
field : 'checked',
checkbox : true,
//跟据返回每行的数据
formatter :function(value,row,index){
return row.id;
}
},
//获取选中的数据
var ids = $('#ID') .bootstrapTable('getAllSelections')
获取table表中的当前页的所有数据
var tableDatas = $('#ID').bootstrapTable('getData');