我想要檢測何時貓頭鷹傳送帶已準備好被操縱,以便我可以向其添加內容。下面的腳本啓動輪播,但初始化事件從不觸發。回調事件不起作用 - 使用貓頭鷹傳送帶
<script type="text/javascript">
jQuery(document).ready(function() {
var owl = jQuery("#owl-example");
owl.on('initialized.owl.carousel', function(e) {
alert('hi');
}).owlCarousel({
navigation: true,
goToFirstSpeed: 2000,
singleItem: false,
transitionStyle: "fade",
items:<?=$_productCollection->getPageSize()?>,
lazyLoad: true,
autoWidth:true,
scrollPerPage:true,
mouseDrag:false,
touchDrag: false,
startPosition: "zero",
navigationText: [
"<strong><</strong>", //this equates to "<"
"<strong>></strong>" //this equates to ">"
]
});
;
});
</script>
請確定所做的更改,並通知用戶誰提出了關於它的問題 – 2015-12-02 17:08:53