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
相关分类