你好,我有一个非常简单的Ext JS组合框,我只是想将其绑定到一个数组上。 以下是组合框的配置:
BPM.configs.ViewsCombo = {
xtype: 'combo',
emptyText: 'Select View',
disableKeyFilter: true,
triggerAction: 'all',
displayField: 'name',
mode: 'remote',
render: function(combo) {
this.store.load();
}
},
store: new Ext.data.SimpleStore({
proxy: new Ext.data.HttpProxy({
url: '/Service.svc/GetUserViewNames',
method: 'POST'
}),
root: 'GetUserViewNamesResult',
fields: ['name']
})
};
以下是Ajax调用的响应/JSON:
{"GetUserViewNamesResult":["something","tree"]}
但是当我查看组合框项目时,列表中只看到字母's'和't'。这是怎么回事?我的返回数组格式有问题吗?
非常感谢。