this.win.addPanel(options);

 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);
  }
 }
}();

posted @ 2009-03-07 09:28  夜色朦胧  阅读(154)  评论(0编辑  收藏  举报