I would like to know how do I run a function right after Owl Carousel is loaded. I read through their callback functions but was not able to see any such callback action which you can call right after Owl Carousel is loaded fully.
我想知道如何在加载Owl Carousel之后立即运行函数。我通读了他们的回调函数,但没有看到任何这样的回调操作,您可以在Owl Carousel完全加载后立即调用。
If any body can help. Thanks is advance.
如果有人能帮忙的话。谢谢是预付款。
更多回答
Which version of Owl Carousel are you using? What do you mean by 'fully loaded'?
您使用的是哪个版本的Owl Carpet?什么叫“满载”?
I am using v1.3.2 and by fully loaded I mean when owl carousel is loaded and there is no further role of owl on that page.
我使用的是1.3.2版,我所说的完全加载是指在加载OWL旋转木马时,该页面上没有OWL的进一步角色。
优秀答案推荐
You can try this
你可以试试这个
$('#owlcarousel').owlCarousel({
items: 1,
loop: true,
autoplay: `true,`
dots: false,
nav: false,
onInitialized: function() {
//.... do some thing like
alert("owl.carousel ready initialized") ;
console.log("owl.carousel ready initialized") ;
}
})
更多回答
我是一名优秀的程序员,十分优秀!