如果你写的是这样的话,var jsonType = [['1', '电话'],['2', '电脑'],['3', '冰箱'],['4','电视']];
这里面有两个字段,为id,typeName
我的下拉列表是这样定义的
fieldLabel : '家电类型',
xtype : 'combo',
mode : 'local',
triggerAction : 'all',
store : jsonType,
valueField : 'id',
displayField : 'typeName',
emptyText : '--请选择--,
editable : false,
name : 'partName'
只要把它改成这样的就可以了,
1. new Ext.form.ComboBox({
2. fieldLabel : '家电类型',
3. hiddenName : 'partName',
4. store : new Ext.data.JsonStore({ // 填充的数据
5. url : '',//填写你要获取数据的请求路径
6. fields : ['id', 'typeName']
7.
8. }),
9. valueField : 'id',
10. displayField : 'typeName',
11. triggerAction : 'all',
12. selectOnFocus : true,
13. mode : "remote",
14. emptyText : '请选择...'
15. })
总结:也就是要把name改成hiddenName就可以了