How does bootstrap get row data?


Related tutorial recommendations: "bootstrap tutorial"

Bootstrap method of obtaining row data

1. Get the data of the selected row

1

2

3

4

5

6

7

8

var rows = $('#dataTable').bootstrapTable('getData');

// Row data

      var ids = "";

      for(var i=0;i<rows.length;i++){           if(rows[i].check){               ids += rows[i].id+",";           }       } 2. Get the data of the row according to the id 1 2 uniqueId: id, //To set a unique identifier, first set the unique key var rows = $('#dataTable').bootstrapTable('getRowByUniqueId',id);//The row's data


















Guess you like

Origin blog.csdn.net/mjian178/article/details/113028048