今天心血来潮,想在切换tabpanel时隐藏对应的工具栏,结果是空白。第一,承受板子的空白!
没有废话,代码,代码如下:复制代码如下://Hide ext . getcmp(' tab 2 '). tbar . Hide();ext . getcmp(' Tab2 '). tbar . DOM . style . height=' 0px ';//display ext . getcmp(' Tab2 '). tbar . show();ext . getcmp(' Tab2 '). tbar . DOM . style . height=' 27px ';//身高可以自己定义,好容易!