简单的Extjs中的Combox选择下拉框使用

{
                        xtype: "combobox",
                        editable: false,
                        emptyText: "--请选择--",
                        mode: 'local',
                        store: new Ext.data.ArrayStore({
                            fields: ['value', 'text'],
                            data: [["男", '男'], ["女", '女']]
                        }),
                        valueField: 'value',
                        displayField: 'text',
                    fieldLabel: "性别",
                    name: "gender",
                    anchor: '100%',
                }

  

valueField: 'value',//键
displayField: 'text',//值
原文地址:https://www.cnblogs.com/Lbox/p/7793552.html