这是我的代码,这可能是什么原因?这不是初始化。
<div class="slider-banner slick-slider">
<div class="slide1 slide slick-slide">
...
</div>
<div class="slide2 slide slick-slide"></div>
...
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="../scripts/slick.min.js"></script>
$('.slider-banner').slick({
dots: false,
infinite: true,
speed: 600,
mobileFirst: true,
slidesToShow: 3,
slidesToScroll: 3,
onInit: function() {
$('.slider-banner').addClass("loaded");
},
responsive: [{
breakpoint: 1280,
settings: {
slidesToShow: 5,
slidesToScroll: 1,
}
}, {
breakpoint: 1600,
settings: {
slidesToShow: 7,
slidesToScroll: 1,
}
}]
});
答案 0 :(得分:0)
删除旧的jquery引用添加此
data_['AREA_ID']