1
서버에서 반환 된 json 메시지가 아래 형식으로 있습니다. jquery 데이터 테이블을 사용하여 테이블에 데이터를 표시합니다. jquery 데이터 테이블을 사용할 때 오류가 발생합니다. 아래 json 형식을 표시하기 위해 jquery 데이터 테이블의 구성에서 내가 잘못 될 위치를 알려주십시오. JSON 데이터와 함께 JQuery와 데이터 테이블의 구성은 아래와 같습니다 : JQuery와 datatables 문서에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
}
]
});