-1
只是試圖讓一個面板充滿了從商店中填充自己的列表。我得到的只是一個空白窗口。它甚至不會在Chrome的網絡窗口中發送HTTP請求。存儲未從遠程URL加載?
列表:
myapp.companies_list = {
fullscreen: true,
title: 'Companies',
iconCls: 'info',
xtype: 'list',
itemTpl: '{name}',
store: {
fields: ['name'],
autoload: true,
proxy: {
type: 'jsonp',
url: base_url+'/index.php/mobile/companies',
reader: {
type: 'json',
rootProperty: 'companies'
}
}
},
listeners:{
initialize: function(){
this.getStore().load();
}
}
}
這將不沒有監聽工作。爲什麼?