【发布时间】:2013-08-09 23:46:44
【问题描述】:
早上,
我在我的控制器中创建了一个这样的商店:
var storeCompanies = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
type: 'GET',
url: url+'dashboard?Uid='+uid+'&Ude='+ude,
reader: {
type: 'json',
root: 'root',
totalProperty: 'total'
},
headers: {
'Accept' : 'application/json;application/x-www-form-urlencoded',
'Content-Type' : 'application/x-www-form-urlencoded',
},
}),
root: 'd',
type: 'localstorage',
autoLoad : true,
id: 'company_Id',
scope : this,
fields: ['Name']
});
console.log(storeCompanies);
控制台日志显示商店正在正确创建和填充。我需要检索下拉列表的所有值。
我试过this,但它返回未定义。
我发现的所有其他信息似乎都在指导如何找到一个值。
检索所有数据最简单、最有效的方法是什么?
【问题讨论】: