我有代码:
$('#table').dataTable({
"aoColumnDefs": [
{ "bVisible": true, "aTargets":[0], "mDataProp":"name" },
{ "bVisible": true, "aTargets":[1], "mDataProp":"surname" },
{ "bVisible": true, "aTargets":[2], "mDataProp":"number" }
]
});
Search
当我有变量设置true时显示此代码,但是当我Search
设置false我只想显示 surname 和 number 列时,我该怎么做?