1
如何在數據值爲true時修改td
類的當前數據?如何修改當前td節點類
目前我只顯示一個空值,但更新td
類會顯示一個圖標。如下所示
columnDefs: [
{ targets: [ 1], visible: false, searchable: false },
{
targets: [ 3],
render: function (data, type, full, meta) {
if(type === 'display') {
if(data==true){
// add class 'details-secret' to current node td
return "";
}
}
return data;
}
},