![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
script技巧
文章平均质量分 64
sweatlove
这个作者很懒,什么都没留下…
展开
-
按纽控制控件的显示与隐藏
http://www.w3.org/1999/xhtml" > 无标题页 function Display(sid) { if (sid.style.display == "none") { sid.style.display="";}else{ sid.style.display="none";} } sdfasdfsadfsdfsdfsdafsdfsadf原创 2007-10-14 20:55:00 · 450 阅读 · 0 评论 -
直接使用nextSibling获得下一个节点
http://www.w3.org/1999/xhtml" > 无标题页 function Display(obj) {sid=obj.parentNode.parentNode.nextSibling;if (sid.style.display == "none") { sid.style.display="";obj.innerText="-";}else{ sid.style.disp原创 2007-10-14 20:58:00 · 882 阅读 · 0 评论