去官方搜沒搜出來,還得是萬能的網友厲害。
//獲取選中項
$(document).on("click", ".btn-selected", function () {// 獲取選中項idsconsole.log(JSON.stringify(Table.api.selectedids(table)));// 獲取選中項所有數據console.log(JSON.stringify($("#table").bootstrapTable('getSelections')));
});
END