警告:请求的未知参数' 0' 0第0行

时间:2016-08-05 11:32:23

标签: java json ajax

我有这个代码返回"警告:请求的未知参数' 0' 0第0行和第34行;这个错误。我搜索过互联网,但无法找到解决方案。我怎么解决这个问题?

var oTable = $("#personalsTable").dataTable( {

        "processing": true,
         "serverSide": true,
        "ajax": {
        "url": "http://localhost:8081/JSON_RestFul_WebService/json/",
        "dataSrc": "personals",
        "type": "GET",
         "columns" : [
                      { "data" : "fin" },
                      { "data" : "name" },
                      { "data" : "surname"}
                     ]}     
        }); 

这是我的json,服务返回:

 {
  "personals": [
    {
      "fin": "1",
      "name": "Ferid",
      "surname": "Qelenderli"
    },
    {
      "fin": "10",
      "name": "Feriddd",
      "surname": "Qelenderliiii"
    },
    {
      "fin": "11",
      "name": "Feriddd",
      "surname": "Qelenderliiii"
    },
    {
      "fin": "12",
      "name": "Feriddd",
      "surname": "Qelenderliiii"
    },
    {
      "fin": "15",
      "name": "Ferid",
      "surname": "Qelenderli"
    },
    {
      "fin": "17",
      "name": "ferid",
      "surname": "ferid"
    },
    {
      "fin": "18",
      "name": "Elxan",
      "surname": "Agayev"
    },
    {
      "fin": "2",
      "name": "Soltan",
      "surname": "Qarayev"
    },
    {
      "fin": "3",
      "name": "Raminnnn",
      "surname": "Balenmedov"
    },
    {
      "fin": "5",
      "name": "Elxan",
      "surname": "Qasimov"
    },
    {
      "fin": "6",
      "name": "Mehis",
      "surname": "Eliyev"
    }
  ]
}

0 个答案:

没有答案