How to Get total and Current Slide Number of Carousel

前端 未结 7 1385
野的像风
野的像风 2020-12-07 20:58

Can you please let me know how I can get the total and current number of the carousel slides in bootstrap like the image below?

相关标签:
7条回答
  • 2020-12-07 21:42

    Bootstrap 3.2+:

    carouselData.getItemIndex(carouselData.$element.find('.item.active'))
    
    0 讨论(0)
提交回复
热议问题