jquery.mobile 1.4.5未捕获的TypeError:无法读取未定义的属性'concat' [英] jquery.mobile 1.4.5 Uncaught TypeError: Cannot read property 'concat' of undefined

查看:352
本文介绍了jquery.mobile 1.4.5未捕获的TypeError:无法读取未定义的属性'concat'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个样本index.html文件,并包含了最新的jquery(3.1.0)和jquery mobile(1.4.5).

I have created a sample index.html file and included the latest jquery (3.1.0) and jquery mobile (1.4.5).

在加载页面上,错误控制台输出:

On the loading page the error console outputed:

jquery.mobile-1.4.5.js:3337 Uncaught TypeError: Cannot read property 'concat' of undefined

在此行:

mouseEventProps = $.event.props.concat( mouseHookProps ),

当我尝试包含jquery-1.11.2时,没有问题.谁能告诉我为什么?预先感谢.

When I tried include jquery-1.11.2 there was no issue. Can any one tell me why? Thanks in advance.

推荐答案

jQuery mobile已锁定到某些版本的jQuery!您会找到

jQuery mobile is locked to some versions of jQuery! You will find a text of

jQuery Mobile 1.3.0支持jQuery core 1.7.2 – 1.9.1和以下版本. 我们也正在积极测试即将推出的2.0版本.我们将成为 与他们的发布保持同步,以便您充分利用 新的优点.

jQuery Mobile 1.3.0 supports versions of jQuery core 1.7.2 – 1.9.1 and we’re actively testing the upcoming 2.0 version too. We will be keeping in sync with their releases to let you take full advantage of the new goodness.

更新

尽管版本3仍返回上述错误,但jQuery mobile现在也适用于2.x版本.

jQuery mobile now works with 2.x versions too, though version 3 still returns the mentioned error.

这篇关于jquery.mobile 1.4.5未捕获的TypeError:无法读取未定义的属性'concat'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆