var pic = $('.picList a')console.log(pic) <div class="picList">
<a href="#"><img src="./img/1.jpg" alt=""></a>
<a href="#"><img src="./img/2.jpg" alt=""></a>
<a href="#"><img src="./img/3.jpg" alt=""></a>
<a href="#"><img src="./img/4.jpg" alt=""></a>
<a href="#"><img src="./img/5.jpg" alt=""></a>
</div>怎么取不到值啊控制台:jQuery.fn.init [prevObject: jQuery.fn.init(1)]jQuery 3.2.1
添加回答
举报
0/150
提交
取消