问题
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);
来源:https://stackoverflow.com/questions/29040649/what-is-the-owlitem-in-owl-carousel