方法一:
document.getElementById("id").style.visibility="hidden";document.getElementById("id").style.visibility="visible";
该方法实现隐藏后,页面的位置还被控件占用,显示空白。
方法二:document.getElementById("id").style.display="none";document.getElementById("id").style.display="inline";
该方法实现隐藏后,页面的位置不被占用。