• Welcome to Journal web site.

我是 PHP 程序员

- 开发无止境 -

Next
Prev

bootstrapTable获取某一行数据

Data: 2017-10-11 17:13:46Form: JournalClick: 2

通过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


Name:
<提交>