简体   繁体   English

Rails JQuery Timepicker:“无方法滑块”

[英]Rails JQuery Timepicker : “No method slider”

I'm try to use the Timepicker addon to the JQuery Datepicker widget. 我尝试将Timepicker插件用于JQuery Datepicker小部件。 When I call $(function (){ $('#scan_time').datetimepicker(); }); 当我调用$(function (){ $('#scan_time').datetimepicker(); }); and click on the text field I get the following error in my Chrome console 然后点击文本字段,在Chrome控制台中出现以下错误

Uncaught TypeError: Object # has no method 'slider' 未捕获的TypeError:对象#没有方法“滑块”

I am loading all the files in my Application.js 我正在将所有文件加载到Application.js中

//= require jquery
//= require jquery_ujs
//= require jquery-ui
//= require_tree .

and I have the time picker addon.js in my Javascripts in my javascripts directory 我在javascripts目录中的Javascript中有时间选择器addon.js

You need to be absolutely sure your js files are all being loaded. 您需要绝对确保所有js文件都已加载。 Search for the contents in application.js after the page is loaded... 页面加载后在application.js中搜索内容...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 带有TimePicker插件小时滑块的jQuery Date Picker - jQuery Date Picker with the TimePicker addon hours slider 将jQuery升级到1.11.1后,jQuery timepicker滑块不起作用 - jQuery timepicker slider not working after upgrading jQuery to 1.11.1 在Rails 4表单中使用JQuery timepicker插件 - Using a JQuery timepicker plugin in a form Rails 4 Timepicker jquery无法正常工作(没有方法curCSS) - Timepicker jquery not working (has no method curCSS) jQuery timepicker'对象不支持此属性或方法' - jQuery timepicker 'Object does not support this property or method' Rails:jQuery-ui-Slider-Pips:错误:slider 小部件实例没有这样的方法'pips' - Rails: jQuery-ui-Slider-Pips: Error: no such method 'pips' for slider widget instance 将jQuery添加到Rails,“滑块不是函数” - Add jquery to rails, “slider is not a function” Rails 3 Asset Pipeline:JQuery Datepicker正在运行,但是Timepicker根本不起作用 - Rails 3 Asset Pipeline: JQuery Datepicker is working, but Timepicker will not work at all 如何在Rails的TimePicker jQuery ruby​​的Ajax函数中访问变量 - How to access variable in an ajax function for timepicker jquery ruby on rails 在编辑表单上的Rails 4上隐藏jquery.timepicker的空日期值 - hide empty date value for jquery.timepicker on Rails 4 on edit form
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM