0
일부 json 데이터를 표시하기 위해 jqGrid를 사용하고 있지만 코드를 실행할 때 눈금이 표시되지 않고 내 콘솔에 메시지가 표시되지 않습니다. 여기
내 JS 코드 :jqGrid가 JSON 데이터를 표시하지 않습니다
$("#gridWall").jqGrid({
datatype: 'json',
data: data,
colNames: ['Id', 'Title', 'Artist', 'ISRC'],
colModel: [
{name: 'Id', index: 'music_video_id', width: 100, editable: false},
{name: 'Title', index: 'title', width: 150, editable: false},
{name: 'Artist', index: 'artist_name', width: 200, editable: false},
{name: 'ISRC', index: 'isrc', width: 150, editable: false}
],
pager: '#gridpagerWall',
loadonce: true,
rowNum: 100,
rowList: [100, 200, 300],
sortname: 'title',
sortorder: 'asc',
jsonReader: {
repeatitems: true,
root: "contents",
page: '1',
total: "number"
},
viewrecords: true,
gridview: true,
hidegrid: false,
caption: 'Wall builder',
editUrl: 'clientArray',
})
그리고 내 JSON 데이터는 다음과 같이 진행됩니다
{"number":50,"type":5,"contents":[{"title":"xxx","isrc":"xxx","artist_name":"xx","music_video_id":"1"},...]}
내가 어떻게 내 문제를 해결할 수있는 사람은 알고 있습니까
?감사합니다.