我想启用数据表右上角的 excel 图标,然后单击图标获取操作类以导出数据。我在数据表中尝试过,但没有任何反应。请帮助我启用 excel 按钮并获取操作。
var oTable = $("#products1").dataTable({
"aaData": newarray,
"bProcessing": true,
"bDeferRender": true,
"bFilter": false,
"bRetrieve": true,
"bJQueryUI": true,
"bPaginate": true,
"sPaginationType": "two_button",
"sDom": '<"H"Tfr>t<"F"ip>',
"bSort": true,
"aaSorting": [[2, 'asc']],
"oTableTools": {
"sSwfPath": "../images/excel_export.gif",
"aButtons": ["Excel"]
},