1
我想使用滑動滑塊從第20張幻燈片開始。我的代碼是:滑動滑塊開始到第n個滑塊
<script>
$(document).ready(function(){
$('.timeline-items').slick({
slidesToShow: 5,
slidesToScroll: 4,
dots:true,
arrows:true,
infinite:false,
autoplay: true,
autoplaySpeed: 4500
});
$('.timeline-items').slickGoTo(20, false);
});
</script>
滑塊火災OK(.slick功能開始),但後來我得到:
Uncaught TypeError: $(...).slickGoTo is not a function
我做什麼了?
從文檔:
slickGoTo
int : slide number, boolean: dont animate
Navigates to a slide by index
它並沒有爲我 https://jsfiddle.net/amLey414/2/工作 – SpaceDogCS