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