var obj= document.getElementById("obj"); 隐藏 : obj.style.display = "none"; 显示 : obj.style.display = "block";