标签:UNC obj class function highlight document xor not block
<div id="test"></div> JS: <script> function ShowDivBoxOrNot(objName, bShow) { if (bShow == true) { document.getElementById(test).style.display = "block"; } else { document.getElementById(test).style.display = "none"; } }; </script>
js直接封装了Div的显示与隐藏,一般用于很多弹框!
标签:UNC obj class function highlight document xor not block
原文地址:https://www.cnblogs.com/agen-su/p/11712224.html