一品网
  • 首页

vue 获取 bootstrap 轮播当前索引值


$('#carousel-example-generic').on('slide.bs.carousel', function (event) {
            var $hoder = $('#carousel-example-generic').find('.item'),
            $items = $(event.relatedTarget);
            //getIndex就是轮播到当前位置的索引
            var getIndex= $hoder.index($items);
            console.log(getIndex,'===111===')
        })

原文: https://www.cnblogs.com/moguzi12345/p/9869248.html

bootstrap

相关


修复 layer插件 在 bootstrap 4.x 下按钮颜色问题

使用Bootstraptable(echarts) toolbox鼠标移动上去中文注释乱码问题

使用bootstrap-table时导出excel开头的0被自动省略

【BootStrap】有序/无序列表 代码和表单

bootstrap table 前端分页(client)和服务端分页(server)的配置项差别

bootstrap table表格按钮

bootstrap.css 进度条没有动画效果

python测试开发django-187.Bootstrap模态框(modal)如何在关闭时触发事件

第二百四十一节,Bootstrap进度条媒体对象和 Well 组件

第二百三十六节,Bootstrap辅组类和响应式工具

第二百四十七节,Bootstrap按钮和折叠插件

第二百四十八节,Bootstrap轮播插件

标签

一品网 冀ICP备14022925号-6