2014-04-21 76 views
1

我有从服务器返回的以下格式的json消息。我使用jQuery数据表来显示表中的数据。尝试使用jQuery数据表时遇到一些错误。请让我知道我在jQuery数据表的配置中出现错误,以显示下面的json格式。使用JSON数据一起jQuery的数据表中的配置如下:在jQuery中显示JSON数据Datatable

$(function () { 
    $('#dataTable').dataTable({ 
     "bJQueryUI": true, 
     "sPaginationType": "full_numbers", 
     "aaData": [ 
     { 
      "links": [ 
      { 
       "rel": "self", // the first column data which should be displayed as link 
       "href": "http://localhost:8080/16" 
      } 
      ], 
      "Country": "INDIA", 
      "state": "Karnataka", 
      "city": "Bangalore", 
      "cityId": 16 
     }, 
     { 
      "links": [ 
      { 
       "rel": "self", 
       "href": "http://localhost:8080/17" 
      } 
      ], 
      "Country": "INDIA", 
      "state": "Tamilnadu", 
      "city": "Chennai", 
      "cityId": 17 
     } 
     ] 
    }); 

回答