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