方法一:
document.all["PanelSMS"].style.visibility="hidden";
document.all["PanelSMS"].style.visibility="visible";
方法二:
document.all["PanelSMS"].style.display="none";
document.all["PanelSMS"].style.display="inline";
方法一隱藏后 頁面的位置還被控件占用 只是不顯示 類似于.net驗證控件的Display=Static
方法二隱藏后 頁面的位置不被占用 類似于.net驗證控件的Display=Dynamic
延伸閱讀
文章來源于領測軟件測試網 http://www.kjueaiud.com/