2016-08-29 29 views

回答

1

隱藏元素最簡單的方法是visible屬性:

myElement('visible', false);

+1

嗨。你的意思是myElement.setAttribute('visible',false); ? – poshaughnessy

3
var el = document.querySelector("#yourElementId"); 

el.setAttribute("visible",false);