Javascript 猫头鹰转盘选择当前项目?
我想选择猫头鹰转盘2当前项目。 我该怎么做?请帮忙 旋转木马中有两个中心分类项目 我已经试过了Javascript 猫头鹰转盘选择当前项目?,javascript,jquery,owl-carousel,Javascript,Jquery,Owl Carousel,我想选择猫头鹰转盘2当前项目。 我该怎么做?请帮忙 旋转木马中有两个中心分类项目 我已经试过了 $.each(centerItems, function () { if (!$(this).hasClass('cloned')) { centerItem = $(this); } }); 但是它不能正常工作。我的回答是基于。要获取活动项,请执行以下操作: $('.owl-carousel .owl-item.active') 其中,.owl carousel是
$.each(centerItems, function () {
if (!$(this).hasClass('cloned')) {
centerItem = $(this);
}
});
但是它不能正常工作。我的回答是基于。要获取活动项,请执行以下操作:
$('.owl-carousel .owl-item.active')
其中,.owl carousel
是carousel容器,.owl item
是item类
如果这不起作用,请发布您的HTML代码