21,893
社区成员




<button onclick="document.getElementById('id2').style.display='block';">显示</button>
<button onclick="document.getElementById('id2').style.display='none';">隐藏</button>
<div id="id1">1</div>
<div id="id2" style="display:none;">2</div>
<!--onclick你也可以放在图片,div,span……上-->