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("");
}
}
}
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("");
}
}
}
相关文章推荐
- JS替换输入
- js滑动触屏事件监听
- Javascript异步编程之一异步原理
- JavaScript对象
- CommonJS 模块规范 1.1.1
- js禁止页面回退,刷新,右键代码
- 浏览器中javascript的执行过程
- jsonp 跨域请求
- js获取事件源及触发该事件的对象
- 重写Backbone.js的加载动作
- BZOJ 1015 [JSOI2008]星球大战starwar
- 判断页面是关闭还是刷新的js代码
- js调用cs中函数的方法及在cs中调用js函数
- JSP通用7动作命令
- jsp中的js嵌入Extjs与后台action交互
- json.dumps loads 终于区分出来了
- md5 jsp页面,加密用
- jsp内置对象 的使用范围和类型【说明】
- JavaScript高级程序设计【面向对象-创建对象】
- 页面自动执行(加载)js的几种方法