如何使用A型框架隐藏元素? [英] How can I hide an element with A-Frame?
本文介绍了如何使用A型框架隐藏元素?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用A-Frame隐藏元素的最佳方法是什么?
What is the best way to hide an element using A-Frame?
是否需要从DOM中删除元素?
Do I need to remove the element from the DOM?
推荐答案
var el = document.querySelector("#yourElementId");
el.setAttribute("visible",false);
这篇关于如何使用A型框架隐藏元素?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文