<span id="k">qqq</span>
<div id="aaaa">
<span style="display:none">1234</span>
<span style="display:none">567</span>
<span style="display:none">789</span>
</div>
<div id="abc">
<span>eee</span>
</div>
<span id="l">www</span>
<script>
str=document.getElementById("aaaa");
message_nodes=str.getElementsByTagName("span");
num=message_nodes.length;
for (i=0;i<num;i++ )
{
message_nodes[i].style.display="block";
}
</script>
评论