Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/412.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 猫头鹰转盘选择当前项目?_Javascript_Jquery_Owl Carousel - Fatal编程技术网

Javascript 猫头鹰转盘选择当前项目?

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是

我想选择猫头鹰转盘2当前项目。 我该怎么做?请帮忙

旋转木马中有两个中心分类项目 我已经试过了

$.each(centerItems, function () {
    if (!$(this).hasClass('cloned')) {
        centerItem = $(this);
    }
});

但是它不能正常工作。

我的回答是基于。要获取活动项,请执行以下操作:

$('.owl-carousel .owl-item.active')
其中,
.owl carousel
是carousel容器,
.owl item
是item类

如果这不起作用,请发布您的HTML代码