怎样实现ext中根据combo中的值来显示与其对应的内容

如果没有button,ext中怎样获取bombo中选择的值,并将它传到后台。
2025-05-14 09:45:13
推荐回答(1个)
回答1:

var store = new Ext.data.SimpleStore({fields:['value','text'],data:data});判断2:{xtype:"combo",
fieldLabel:rl("login_type"),
id:"level",
hiddenName:"level",//设置此属性,用来获取内容对应的value值:1,2,3
valueField:'value',//下拉列表中显示内容对应的value值
displayField:'text',//下拉列表中显示的内容
store: store,
triggerAction: 'all',
lazyRender:true,
width:126,
typeAhead: true,
selectOnFocus:true,
allowBlank:false,