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
}
]
});