当前功能:轮播滑块将在移动设备和台式机中使用导航点,自动播放和拖动选项进行滑动。
新规范:滑块将移动到我的第5张幻灯片,并且仅在移动设备中停止滑动(可拖动,自动播放),而台式机保持不变。
当前代码:
moment.locale('fr', {
meridiem : function (hours, minutes, isLower) {
return hours < 12 ? 'PD' : 'MD';
}
});
答案 0 :(得分:0)
您只需将其添加到您的代码中
sliderHome.trigger('to.owl.carousel', [4, 500, true]);
// 4 is the slide index
// 500 is the speed in ms - maybe you want 0 here
也许将其放置在调整大小函数中,因此如果用户调整窗口大小,它将做出反应