我这里没办法帮你测试,说说我的第一感觉你可能出错的地方:1. 好多前台卡住一直显示“加载中”是由于后台代码出错,所以检查下你的java代码中是不是成功把市区的json数据传过来了,特别注意这里: } else if ("shi".equals(act)) {
jary = service.getRegionJson(Integer.parseInt(param));
2.在你的前台省份自动加载后各市区的数据是通过代码手动加载的,所以跟踪调试下你省份listeners的那部分代码加载市区数据时是不是出错了: listeners : {
'select' : function(combo, record, index) {
try{
combo2.clearValue();
combo3.clearValue();
combo2.store.load({params:{param:this.value}});
} catch(ex){
Ext.MessageBox.alert("错误","数据加载失败。");
}
}
jary = service.getRegionJson(Integer.parseInt(param));
2.在你的前台省份自动加载后各市区的数据是通过代码手动加载的,所以跟踪调试下你省份listeners的那部分代码加载市区数据时是不是出错了: listeners : {
'select' : function(combo, record, index) {
try{
combo2.clearValue();
combo3.clearValue();
combo2.store.load({params:{param:this.value}});
} catch(ex){
Ext.MessageBox.alert("错误","数据加载失败。");
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货