Jquery Ui滑块和引导3旋转木马一起

Jquery Ui滑块和引导3旋转木马一起,jquery,html,twitter-bootstrap-3,uislider,Jquery,Html,Twitter Bootstrap 3,Uislider,我想使用ui滑块来更改旋转木马图像。我想使用和默认的引导转盘 目前我有以下代码: $('.noUiSlider').noUiSlider({ range: [0,6], start: 0, handles: 1, orientation: "vertical", slide: function () { var values = $(this).val(); $('#carousel-example-generic').ca

我想使用ui滑块来更改旋转木马图像。我想使用和默认的引导转盘

目前我有以下代码:

$('.noUiSlider').noUiSlider({
    range: [0,6],
    start: 0,
    handles: 1,
    orientation: "vertical",
    slide: function () {
        var values = $(this).val();
        $('#carousel-example-generic').carousel(values[0]);             
    }
});
考虑引导转盘文档中的以下行:

.传送带(编号)

将旋转木马循环到特定帧(基于0,类似于 数组)

它给出了一个错误未捕获类型错误:对象[Object Object]没有方法“0”,我无法理解是什么错误。

问题已解决:

var value = parseInt( $(this).val() );
$('#carousel-example-generic').carousel(value);