What is the owlItem in owl carousel?

2019-08-29 23:08发布

问题:

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:

var number = $(this).find(".item h1").html();
alert(number);