Slick.js显示当前幻灯片和幻灯片总数

时间:2015-03-30 21:31:35

标签: jquery slick.js

我无法在sllick.js幻灯片下方显示当前和总数量的幻灯片。谢谢你的帮助!!

$('.recipeThumbs').slick({
    dots: true,
    arrows: true,
    slidesToShow: 4,
    slidesToScroll: 4,
    infinite: true,
    responsive: [
    {
      breakpoint: 768,
      settings: {
        dots: false,
        arrows: true,
        centerMode: true,
        centerPadding: '40px',
        slidesToShow: 2,
        slidesToScroll: 1
      }
    },
    {
      breakpoint: 480,
      settings: {
        dots: false,
        arrows: true,
        centerMode: true,
        centerPadding: '40px',
        slidesToShow: 1,
        slidesToScroll: 1
      }
    }
    ]
  });

1 个答案:

答案 0 :(得分:4)

我实际上在另一个stackoverflow帖子上找到了我的问题的答案。这是它的链接:)

Slick.js: Get current and total slides (ie. 3/5)