单机获取选中行的数据
$("#myTable").on("click","tr",function(){
var data=table.row(this).data();
console.log(data);
})
双击获取选中行的数据
$("#myTable tbody tr").dblclick(function(e){
var index = $(this).context._DT_RowIndex; //行号
console.log(table.row(this).data());
});