var TypeInfoForm = Ext.getCmp("TypeInfoForm"); TypeInfoForm.getForm().load({ url:"/manage/TypeInfoManageServlet?flag=getById&typeId="+typeId, waitMsg:'正在读取数据...', success:function(){ //正确读取完数据后,再初始化对应下拉列表 var count = typeInfoListStore.getCount(); var parentId = Ext.getCmp("parentIdHidden").getValue(); for(var i = 0 ; i < count ; i++){ var typeInfo = typeInfoListStore.getAt(i).data; if(typeInfo.typeId == parentId){ Ext.getCmp("parentId").setValue(typeInfo.typeName); } } } });