Slick Carousel Uncaught TypeError: $(…).slick is not a function

前端 未结 15 1590
独厮守ぢ
独厮守ぢ 2020-12-10 00:18

Somehow I\'m unable to use slick carousel (http://kenwheeler.github.io/slick/) correctly.

I\'m getting the following error:

Uncaught TypeError: $(..         


        
15条回答
  •  南方客
    南方客 (楼主)
    2020-12-10 01:07

    It's hard to tell without looking at the full code but this type of error

    Uncaught TypeError: $(...).slick is not a function
    

    Usually means that you either forgot to include slick.js in the page or you included it before jquery.

    Make sure jquery is the first js file and you included the slick.js library after it.

提交回复
热议问题