📌  相关文章
📜  如何编辑元素的可见性 javscript - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:29.828000             🧑  作者: Mango

代码示例1
const element = document.getElementById("id");    // Get element
element.style.visibility = "hidden";            // Hide element
element.style.visibility = "visible";            // Show element
const visible = element.style.visibility;        // Get visibility