您的位置:首页 > Web前端 > JavaScript

extjs2.2 combo的监听

2015-07-15 15:31 603 查看
listeners : {
beforeselect : function(combo) {
prov = combo.getValue();
},
select : function(combo, record, index) {
if (prov != combo.getValue()) {
var area = Ext.getCmp('areano');
var county = Ext.getCmp("countyno");
areaStore.removeAll();
countyStore.removeAll();
areaStore.baseParams.provinceno = combo.getValue();
areaStore.load();
area.setValue("");
area.setRawValue("");
county.setValue("");
county.setRawValue("");
}
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: