去官方搜没搜出来,还得是万能的网友厉害。
//获取选中项
$(document).on("click", ".btn-selected", function () {
// 获取选中项ids
console.log(JSON.stringify(Table.api.selectedids(table)));
// 获取选中项所有数据
console.log(JSON.stringify($("#table").bootstrapTable('getSelections')));
});
END