我真的无论如何也无法摆脱它们:
dots: false,
什么也不做?
我真的无论如何也无法摆脱它们:
dots: false,
什么也不做?
由于您正在使用OwlCarousel版本1,请查看它们的文档。文档中也说明可以通过以下方式关闭分页(点):
pagination: false,
dots: false,
是版本2的设置。请参考这个GitHub问题,它提出了相同的问题。
<pre>
<code>
<script type="text/javascript">
$(document).ready(function(){
$('.owl-carousel').owlCarousel({
dots: false,
});
});
</script>
</code>
</pre>
$('.owl-carousel').owlCarousel({
nav: false,
dots: false,
.....
..
对于第2版,您可以使用dots属性。
$(document).ready(function(){
$('.owl-carousel').owlCarousel({
// ... other properties
dots: false,
// ... other properties
});
});
尝试以下方法:
<script type="text/javascript" >
require(['jquery','owlcarousel'], function($){
$(document).ready(function() {
$('#feature_product').owlCarousel({
margin: 10,
dots:false,
loop: true,
autoplay: true,
autoplayTimeout:300,
slideSpeed : 200,
responsiveClass:true,
responsive:{
0:{
items:1,
nav:true
},
600:{
items:3,
nav:true
},
1000:{
items:5,
nav:true,
loop:true
},
}
});
});
});
</script>