1
我有一張桌子。在表中,最後一列僅包含兩個圖像,通過使用數據表,我以csv形式保存表的記錄。但是我想從csv文件中排除最後一列,因爲它只包含2個圖像。怎麼做。請幫幫我。我的代碼是這樣的:保存到數據表csv
$('#example').dataTable({
"bProcessing": true,
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"sDom": 'T<"clear">lfrtip',
"oLanguage": {
"sSearch": "Search all columns:"
},
"oTableTools": {
"aButtons": [{
"sExtends": "csv",
"sButtonText": "Save to CSV"
}]
},
"aoColumns": [
null,
null,
null,
{ "bSortable": false }, // disable the sorting property for checkbox header
null,
null,
null,
{ "bSortable": false } // disable the sorting property for checkbox header
]
});
我得到了答案。通過使用mColumns:[0,1,2,3,4]我得到了結果。但仍然在csv文件中,我不想要在tfoot標記中的最後一個表格行。所以請幫助我。 – Bappa 2012-07-23 12:03:45