在此代码中:
$(document).ready(function() {
$('#table_tabl').attr('style', 'width:100%');
$('#table_tabl').dataTable({
responsive: true,
"oLanguage": {
"sUrl": "<?php echo RP_LANG ?>fr_FR.txt",
},
"processing": true,
"serverSide": true,
ajax: "<?php echo RP_SSP ?>server_processing_reservTables.php",
"aoColumnDefs":
[{
"aTargets": [5],
"mData": 4,
"mRender": function (data, type, full) {
var table_ = '\''+full [0]+'\'';
return '<div style="text-align:center;"><a href="Restaurantreservation/modifierReservTable/'+ data +'"><i class="icon-pencil"></i></a>'+
'<a href="#" id="staticDialog" onclick="afficheDlg('+ data +','+table_+')" style="color:red;font-size:14px;" title="Supprimer"><i class="icon-cancel-2"></i></a>'+
'<a href="Restaurantreservation/affecterReservTable/'+ data +'"><i class="icon-locked"></i></a>'+
'<a href="Restaurantreservation/annulerReservTable/'+ data +'"><i class="icon-unlocked"></i></a></div>';
},
}],
"aLengthMenu": [[10, 25,50,100, -1], [10, 25,50,100, "Tout"]]
});
});
aTargets
选项(aoColumnDefs
选项中)括号内的数字代表什么?
答案 0 :(得分:2)
aTargets
属性是一个数组,用于定位许多列中的一列,其中的每个元素都可以是:
更多Details