0

我正在尝试使用Date Range Picker插件。Chrome浏览器中的日期范围选择器日期选择问题

这在Firefox浏览器中正常工作。日期选择选项在Chrome浏览器中不起作用(当我选择日期选项时不会发生任何事情)。

我看到下面的日志在Chrome浏览器中的“检查元素”控制台:

daterangepicker.jQuery.js:256Uncaught TypeError: undefined is not a function daterangepicker.jQuery.js:159Uncaught TypeError: Cannot call method 'formatDate' of undefined daterangepicker.jQuery.js:171Uncaught TypeError: Object [object Object] has no method 'datepicker' daterangepicker.jQuery.js:171Uncaught TypeError: Object [object Object] has no method 'datepicker'2 daterangepicker.jQuery.js:159Uncaught TypeError: Cannot call method 'formatDate' of undefined daterangepicker.jQuery.js:171Uncaught TypeError: Object [object Object] has no method 'datepicker' daterangepicker.jQuery.js:171Uncaught TypeError: Object [object Object] has no method 'datepicker'2 daterangepicker.jQuery.js:256Uncaught TypeError: undefined is not a function

一个有趣的事情是,日期选择适用于Chrome罚款如果日期范围选择器插件代码保存在某个文件夹,只是打开index.html(演示代码)。只有当插件保存在服务器上时,我才会看到此问题。

请给出一些提示来解决这个问题。

+0

你可以提出这个问题在github上,可能你会得到回答有。 https://github.com/filamentgroup/jQuery-UI-Date-Range-Picker/issues – pramodtech

+0

你是什么意思_“保存在服务器”_?来自github?如果是的话,不是你必须从github引用** raw **版本(通过点击源代码上方右上角的'raw'链接)。 –

+0

@ Pramodtech,谢谢,我也会问在github上也 –

回答

0

我有类似的问题。我认为这是由“日期”字段的Chromes表示以及chrome提供其自己的下拉日期选择器的事实引起的。

我只是改变了输入的类型为“文本”,它是现在工作顺利,就像在Firefox

相关问题