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

时间:2014-12-10 15:47:46   收藏:0   阅读:253

/////定義一個方法,用來調用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;

}

评论(0)
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!