0
不加載我嘗試從JSON響應轉換列表中加載的值,它沒有顯示任何values.Here我 JSON請求JSON響應列表
http://117.218.59.157:8080/WishList/ShowItems/userID=1
GET method
JSON響應
這裏我的清單代碼
Ext.regModel('Filiale', {
fields: ['itemID', 'itemName', 'itemImage'],
});
var tab= Ext.create('Ext.List', {
width: 320,
height: 290,
model: 'Filiale',
store: {
fields: ['itemName','itemImage'],
proxy: {
type: 'ajax',
method: 'GET',
url : 'http://117.218.59.157:8080/WishList/ShowItems/userID=1',
reader: {
type: 'json'
}
}
},
itemTpl: '<img src="{itemImage}" width="35" heigh="35"></img><span>   {itemName}'
});
我覺得問題在list.Can語法的任何一個,請幫我解決