Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/85.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 Jquery UI滑块选项对象_Javascript_Jquery_Jquery Ui_Jquery Ui Slider - Fatal编程技术网

Javascript Jquery UI滑块选项对象

Javascript Jquery UI滑块选项对象,javascript,jquery,jquery-ui,jquery-ui-slider,Javascript,Jquery,Jquery Ui,Jquery Ui Slider,我试图在项目中使用jQueryUI滑块。我需要创建具有不同选项的滑块,我正在尝试使用选项方法 我已经做了以下工作: HTML 这条线 target.slider("option", options); 正在导致以下错误 Error: cannot call methods on slider prior to initialization; attempted to call method 'option' 根据方法选项接受对象。。我错过了什么 另外,在创建滑块之前,不能

我试图在项目中使用jQueryUI滑块。我需要创建具有不同选项的滑块,我正在尝试使用
选项
方法

我已经做了以下工作:

HTML 这条线

target.slider("option", options);
正在导致以下错误

Error: cannot call methods on slider prior to initialization; attempted to call method 'option'
根据方法
选项
接受对象。。我错过了什么

另外,在创建滑块之前,不能调用.slider(“选项”,options)。只需使用选项对象作为参数创建滑块:

target.slider(options);
在创建滑块之前,不能调用.slider(“option”,options)。只需使用选项对象作为参数创建滑块:

target.slider(options);
target.slider(options);