今天心血來潮,想在切換tabpanel的時候,把對應的工具列隱藏掉,結果出現空白,先熊板板的空白!


不廢話,上代碼,代碼如下:
//隱藏
Ext.getCmp('Tab2').tbar.hide();
Ext.getCmp('Tab2').tbar.dom.style.height = '0px';
//顯示
Ext.getCmp('Tab2').tbar.show();
Ext.getCmp('Tab2').tbar.dom.style.height = '27px';//高度可以自己定義
搞定,so easy!
