嗨,当我单击 GLide.js http://glide.jedrzejchalubek.com/docs.html#intro中的下一个和上一个按钮时,如何获得当前幻灯片编号。
var carousel = $('#Carousel').glide({
type: 'carousel',
startAt: 1,
touchDistance: 2,
afterInit:function(){console.log("paintSlider")},
autoplay: 0
});
console.log(carousel.current());