How to Get total and Current Slide Number of Carousel

前端 未结 7 1384
野的像风
野的像风 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'))
    

提交回复
热议问题