数组问题,挨个隐藏与直接用数组名隐藏有什么不同,貌似直接用数组是不行的对吗
for(var j = 0; j < aDiv.length; j++) { aDiv[j].className = "hide"; }
可以换成
aDiv.className="hide"
吗?这样还少了个循环,是不是className不允许这么用,求大神,谢谢
for(var j = 0; j < aDiv.length; j++) { aDiv[j].className = "hide"; }
可以换成
aDiv.className="hide"
吗?这样还少了个循环,是不是className不允许这么用,求大神,谢谢
2015-04-24
举报