weixin_33674976 2016-09-27 14:24 采纳率: 0%
浏览 21

导出数据表

I have trying to export showing result statement in below of datatable in Excel.

Here is my code:

table = $('#loadmaincat').DataTable({   
    "ajax" : {
        "url" : "model/productListReport.php",
        "type" : "POST",
        "data" : {
            "list" : "list",
            "dataSrc": "data",
            "type" : "all"
        }
    },
    exportOptions: {
        modifier: {
            search: 'applied',
            order: 'applied',
        }
    }
});

Can anybody help me?

Thanks in advance.

  • 写回答

0条回答 默认 最新

    报告相同问题?