这就是我声明我的数据表的方式
$('#editable').dataTable({
"processing": true,
"serverSide": true,
"ajax": "ProjectController.php?getProjectData=1",
当我在搜索栏中输入时,呼叫将关闭并检索正确的数据,但表格不会更改。 我有什么设置可以解决这个问题吗?
返回的json是
{
"draw": 1,
"recordsTotal": "2",
"recordsFiltered": 2,
"data": [{
"id": "1",
"jobnumber": "",
"name": "Piek, G D F",
"erfno": "block 46",
"address": null,
"from": null,
"jobyear": "1995",
"jobstatus": "Complete",
"contactinfo": null,
"datedue": null,
"datecreated": "2010-06-29 14:38:49",
"operatorname": null
}, {
"id": "63658",
"jobnumber": "",
"name": "Piek, G D F",
"erfno": "block 46",
"address": null,
"from": null,
"jobyear": "1995",
"jobstatus": "Complete",
"contactinfo": null,
"datedue": null,
"datecreated": "2010-06-29 14:38:49",
"operatorname": null
}]
}
答案 0 :(得分:0)
知道你需要增加发送回表格的json中的抽奖计数