获取单行选中的值
$('#MonitoringTypeTable tbody').on('click', 'tr', function () {if ($(this).hasClass('selected')) {$(this).removeClass('selected');}else {dataTable.$('tr.selected').removeClass('selected');$(this).addClass('selected');var data = dataTable.rows('.selected').data(); // 获取选中的值if (data.length > 0) {MonitorTypeId = data[0].basicMonitoringType.id; //获取对应的值 getMonioringTypeChart();}}});