2
我有一個小問題,我需要一些JSON數據加載到我的網格,但我有特異性目的JSON格式是這樣的:ExtJS的自定義讀者
{"response":[
76297,
{"aid":66132303,"owner_id":30729520,"artist":"Шакира - Танго","title":"So objection!! I don't wanna be the exception to get a bit of your attention... I love you for free and I'm not your mother, but you don't even bother... Objections!! I'm tired of this triangle... GOT DIZZY DANCING TANGO","duration":224,"url":"http:\/\/cs1663.vkontakte.ru\/u17640367\/audio\/ebde4092fde5.mp3","lyrics_id":"2203614"},
{"aid":129159521,"owner_id":23962687,"artist":"Yann Tiersen","title":"Mother's Journey (Ennja Remix)","duration":281,"url":"http:\/\/cs6000.vkontakte.ru\/u97497795\/audio\/fb309491bc82.mp3","lyrics_id":"21301612","album":"21017129"},
{"aid":81267321,"owner_id":673065,"artist":"Hurts","title":"Mother Nature","duration":170,"url":"http:\/\/cs4633.vkontakte.ru\/u673065\/audio\/d329378eb2d2.mp3","lyrics_id":"5693202"}]
}
所以數組的第一個元素是總記錄數,而其他則是要加載的記錄。 如果我嘗試將這樣的記錄加載到我的網格,我在底部有空行,什麼是解決方案?我應該使用一些「定製」閱讀器,如何實現它?
你能舉一些例子嗎?我無法想象如何做到這一點=( – 2012-03-15 22:00:18
好吧,在這裏發佈我的例子不會解決任何問題,因爲我的問題是完全不同的,請讓我在答案中添加更多描述。 – sha 2012-03-16 00:37:03
非常感謝,它超過了我只能想象! – 2012-03-16 09:18:31