[英]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.