📜  javascript 更改属性 - Javascript 代码示例

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

代码示例4
//Fetch id from html
var a = document.getElementById("id");

//variable.setAttribute("Attributes","Properties:Values")
a.setAttribute("style", "visibility:hidden;");