gpt4 book ai didi

jquery slider 错误未捕获TypeError : Cannot call method 'addClass' of undefined

转载 作者:行者123 更新时间:2023-12-03 22:26:41 24 4
gpt4 key购买 nike

我的 jQuery slider 有问题。更新 slider 的值后,它不再工作并显示错误,内容为

"Uncaught TypeError: Cannot call method 'addClass' of undefined". 

我不知道如何解决这个问题。谢谢!

这里是示例代码:

 $("#slider-range").slider({

range:true,
min: minPrice,
max: maxPrice,
values:[ minPrice , maxPrice ],
slide: function( event,ui ){},

change: function( event,ui ){

$( "#amount" ).val( "$" + ui.values[0] + " - $" + ui.values[1] );
}
});

最佳答案

<小时/>

输入错误:看来您为 slider 的值设置了无效值。因此它无法加载 - 将 int 放入字符串中并将其用作 bool 值 - 永远不会工作...

:)-

干杯

BIEG

关于jquery slider 错误未捕获TypeError : Cannot call method 'addClass' of undefined,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12210884/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com