87,992
社区成员
发帖
与我相关
我的任务
分享
var ap=document.getElementsByTagName("div");
for(var i=0; i<ap.length; i++){
if(ap[i].this.style.display == "none") {
ap[i].this.style.display="block";
} else {
ap[i].this.style.display="none";//隐藏
}
}
就可以了