未捕获TypeError:无法设置属性“mobile”未定义 [英] Uncaught TypeError: Cannot set property 'mobile' of undefined
本文介绍了未捕获TypeError:无法设置属性“mobile”未定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在指令中使用jquery mobile,它是为通知栏添加一些动画。我使用jquery 1.8.1但是当我使用jquery mobile
< script src =scripts / vendor / jquery /jquery.mobile-1.3.1.js\"> ;</script>
我得到以下错误:
未捕获的TypeError:无法设置未定义的属性'mobile'jquery.mobile-1.3.1.js:26
(匿名函数)jquery.mobile-1.3.1 .js:26
(匿名函数)jquery.mobile-1.3.1.js:27
(匿名函数)jquery.mobile-1.3.1.js:22
jquery.mobile-1.3.1.js:24
有任何建议吗?
提前感谢!
解决方案
使用 jQuery-Mobile版本1.3.1 em> jQuery version 1.8.3 或更高版本。建议使用 jQuery版本1.9.1 。
I am developing an app with angular js and phonegap.
I am using jquery mobile in a directive, it is for adding some animation to a notification bar. I t works well with jquery 1.8.1 but when I use jquery mobile
<script src="scripts/vendor/jquery/jquery.mobile-1.3.1.js"></script>
I get the following error:
Uncaught TypeError: Cannot set property 'mobile' of undefined jquery.mobile-1.3.1.js:26
(anonymous function) jquery.mobile-1.3.1.js:26
(anonymous function) jquery.mobile-1.3.1.js:27
(anonymous function) jquery.mobile-1.3.1.js:22
(anonymous function) jquery.mobile-1.3.1.js:24
Any suggestions?
Thanks in advance!
解决方案
With jQuery-Mobile version 1.3.1, use jQuery version 1.8.3 or higher. It's recommended to use jQuery version 1.9.1.
这篇关于未捕获TypeError:无法设置属性“mobile”未定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文