// var n1=0; $(".mbzxgsnav .swiper-slide").each(function(){ if($(this).hasClass("now")){ n1=$(this).index() } }) console.log(n1) var navswiper = new Swiper('.mbzxgsnav', { initialSlide :n1, slidesPerView:"auto", spaceBetween: 10 // slideToClickedSlide: true, });
XML ͼ | Sitemap ͼ