JavaScript怎么获取不同的ul中的li,后续好遍历数组
<divid=""class="container"><ulid="picUI"><li><ahref="##"><imgsrc="img/1.jpg"alt=""/><...
<div id="" class="container">
<ul id="picUI">
<li><a href="##"><img src="img/1.jpg" alt="" /></a></li>
<li><a href="##"><img src="img/2.jpg" alt="" /></a></li>
<li><a href="##"><img src="img/3.jpg" alt="" /></a></li>
</ul>
<ul id="dotUI">
<li class="selected">1</li>
<li class="unselected">2</li>
<li class="unselected">3</li>
</ul>
</div> 展开
<ul id="picUI">
<li><a href="##"><img src="img/1.jpg" alt="" /></a></li>
<li><a href="##"><img src="img/2.jpg" alt="" /></a></li>
<li><a href="##"><img src="img/3.jpg" alt="" /></a></li>
</ul>
<ul id="dotUI">
<li class="selected">1</li>
<li class="unselected">2</li>
<li class="unselected">3</li>
</ul>
</div> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询