bootstrapTable单击行或单元格时获取所在行索引的方法 onClickCell: function(field, value, row, $element) { var index = $element.parent().data('index'); }