What is the owlItem in owl carousel?

独自空忆成欢 提交于 2019-12-25 04:12:16

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!