我正在制作图像滑块,但不能停在最后一张图像
以下是代码
var element=$(container);
element.find('ul').addClass('slides');
var slides = element.find('ul.slides li');
var targetSlide=0;
$.skdslider.currentSlide=0;
$.skdslider.currentState='pause';
$.skdslider.createNav(element,slides, config);
slides.eq(targetSlide).show();
if (config.autoStart==true){
$.skdslider.currentState='play';
$.skdslider.interval=setTimeout(function() {
$.skdslider.playSlide(element,slides, config);
}, config.delay);
}
};