What is the owlItem in owl carousel?

2019-08-29 23:06发布

Any one have idea about this

.data("owlItem")

? how can i find this on jquery or console log. i think this is not data attribute.

.data("owlItem")

.data("owlItem")


$("#slider_thumb").on("click", ".owl-item", function(e){      
    e.preventDefault();
    var number = $(this).data("owlItem"); 
    sync1.trigger("owl.goTo",number);
  });

Thanks!

1条回答
Melony?
2楼-- · 2019-08-29 23:53
var number = $(this).find(".item h1").html();
alert(number);
查看更多
登录 后发表回答