Recommended related tutorials: "bootstrap tutorial"
bootstrap's method of obtaining row data
1. Get the data of the selected row
var rows = $('#dataTable').bootstrapTable('getData'); //行的数据 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 based on the id
uniqueId : id,//设置唯一的标识,要先设置唯一键 var rows = $('#dataTable').bootstrapTable('getRowByUniqueId',id);//行的数据
For more programming-related knowledge, please visit: Programming Learning Course! !
The above is the detailed content of How to get row data in bootstrap?. For more information, please follow other related articles on the PHP Chinese website!