this.win.addPanel(options);
运行时出现对象不支持此方法
可能原因:
1.父窗体不存在
Business.MainMgr=function(){
return {
win:parent.window,
addPanel:function(options){
this.win.addPanel(options);
},
colsePanel:function(options){
this.win.colsePanel(options);
},
getFullUrl:function(url,params){
var sp='?';
var s='&';
if(url.indexOf('?')>-1){
sp='';
}
if(url.substr(url.length-1,url.length)==s){
s='';
}
return url+sp+s+Ext.urlEncode(params);
}
}
}();