使用jquery选择多个相同class中的一个的方法


$(".swiper-wrapper .swiper-slide:nth-of-type(1)").append('');

.swiper-wrapper父级class

.swiper-slide子级

:nth-of-type(1) 跟在子级后面,1表示相同class中第一个

猜你喜欢

转载自blog.csdn.net/leixu1027/article/details/52670863
今日推荐