javascript jQuery UI Datepicker - 未捕获的类型错误:无法读取未定义的属性“msie”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/15262468/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-27 00:05:57  来源:igfitidea点击:

jQuery UI Datepicker - Uncaught TypeError: Cannot read property 'msie' of undefined

javascriptjquerywordpressjquery-ui

提问by Scully

I've developed a website in WordPress and installed the Gravity Forms plugin (http://www.gravityforms.com/). I have added a book online form to a page, but the datepicker is returning the following error in the console when clicked:

我在 WordPress 中开发了一个网站并安装了 Gravity Forms 插件 ( http://www.gravityforms.com/)。我在页面上添加了一个在线图书表单,但单击日期选择器时,在控制台中返回以下错误:

Uncaught TypeError: Cannot read property 'msie' of undefined

未捕获的类型错误:无法读取未定义的属性“msie”

http://ultimatepaintball.com.au/packages/book-online/

http://ultimatepaintball.com.au/packages/book-online/

Has anyone experienced this issue before? I read somewhere that it may be an issue with jQuery 1.9 and $.browser, but the issue persists even when I fall back to 1.8.3.

有没有人遇到过这个问题?我在某处读到它可能是 jQuery 1.9 和 $.browser 的问题,但即使我回退到 1.8.3,问题仍然存在。

Thanks.

谢谢。

回答by Obmerk Kronen

not sure , but I think you will need to use the no conflict method http://api.jquery.com/jQuery.noConflict/

不确定,但我认为您需要使用无冲突方法http://api.jquery.com/jQuery.noConflict/

OR

或者

change all your $signs to jQUeryon the scripts

将您所有的$标志更改为jQUery在脚本上

OR

或者

(function( $ ) {
  $.fn.myPlugin = function() {
    // Do your awesome plugin stuff here
  };
})( jQuery );

or some method combining all of the above .

或结合上述所有内容的某种方法。

you can also search this site for similar questions :

你也可以在这个网站上搜索类似的问题:

https://stackoverflow.com/search?q=jquery+conflict

https://stackoverflow.com/search?q=jquery+conflict