通过index获取行数据

var tableData = $("#bootstrap-table").bootstrapTable('getData');
console.log("index=0 : ", tableData[0]);
console.log("index=1 : ", tableData[1]);
console.log("index=2 : ", tableData[2]);
通过主键获取行数据
var id = 1;
var rowData = $('#bootstrap-table').bootstrapTable('getRowByUniqueId',id);
获取选中的行
var rowsData = $('#bootstrap-table').bootstrapTable('getSelections');
可能选中多行
参考
https://www.bootstrap-table.com.cn
https://bootstrap-table.com