Extjs 3.4 生成button,并調用相同的window

/////定義一個方法,用來調用win_mucangjieshou的窗口

var panel_contant= function(id_name){  

      var aa=Ext.getCmp(id_name).getText();   

       //alert(aa);     

     public_gg=aa;       

   win_mucangjieshou.show();

}

//定義button

function CrateButton(id){  

   var btn=new Ext.Button({       

         height:80,        

        width:458,        

        id:id,        

        text:id,       

      handler:function(){           

         panel_contant(id);     

        }

    })  

  return btn;

}

posted @ 2014-12-10 14:50  南新豫  阅读(176)  评论(0编辑  收藏  举报