//swiper 在loop=true时,获取当前的index
onSlideChangeEnd: function (swiper) {
    var index = $('.swiper-slide-active').attr('data-swiper-slide-index');
    //console.log(index);
    var title = $(".Jcase .swiper-container .slide-" + index).data("title");
    console.log(title)
    $('.Jcase .JlunboTxt').text(title);
}

 

相关文章:

  • 2021-12-20
  • 2021-11-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
  • 2021-11-18
猜你喜欢
  • 2022-12-23
  • 2021-08-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案