Jquery-datatables插件接收的json数据格式应该是怎样

2025-05-23 16:10:15
推荐回答(1个)
回答(1):

想使用datatable显示数据。假设只有“id”和“name”两个字段。后端用php的json_encode来返回字段。 $("#example").dataTable({ "bAutoWidth": false, //自适应宽度 "aaSorting": [[1, "asc"]], "sPaginationType": "full_numbers", "oLanguage": { ...