dataTable( { processing: true, serverSide: true, ajax: { "url": "/index.php/DataTableExample/dataTable", "type": "POST" }, columns: [ { data: "s.s_name" }, {data : "c.c_name"}, {data : "c.c_zip"}, { data: "$.city_state_zip" } //refers to the expression in ...
<table id="firstTable"> <thead> <tr> <th>id</th> <th>title</th> <th>date</th> </tr> </thead> </table> JavaScript $('#firstTable').DataTable({ "aoColumnDefs": [{ "bSortable": false, "aTargets": [ 0,1,2 ] }], "order":[], "serverSide":true, "searching": false,...
也许你的连接有问题,尝试转储生成的查询并在DB上手动回复它们,这可能会有所帮助。