var sex_combo = new Ext.form.ComboBox({
width:220,
height:50,
typeAhead: true,
triggerAction: 'all',
lazyRender:true,
mode: 'local',
anchor:"46.5%",
store:new Ext.data.SimpleStore({
fields:["sex"],
data:[["male"],["female"]]
}),
valueField: 'sex',
displayField: 'sex',
fieldLabel:'aa'
});
width:220,
height:50,
typeAhead: true,
triggerAction: 'all',
lazyRender:true,
mode: 'local',
anchor:"46.5%",
store:new Ext.data.SimpleStore({
fields:["sex"],
data:[["male"],["female"]]
}),
valueField: 'sex',
displayField: 'sex',
fieldLabel:'aa'
});
width:220,
height:50,
typeAhead: true,
triggerAction: 'all',
lazyRender:true,
mode: 'local',
anchor:"46.5%",
store:new Ext.data.SimpleStore({
fields:["sex"],
data:[["male"],["female"]]
}),
valueField: 'sex',
displayField: 'sex',
fieldLabel:'aa'
});
fields:["sex"],
加上<span>标签就出错了,还是不行啊,亲
你下面valueField设置的是sex,aa只是label,用来展示