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

查看:17
本文介绍了jquery.mobile 1.4.5 未捕获的类型错误:无法读取未定义的属性“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: 无法读取 undefined` 的属性 'concat'

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?

推荐答案

看这个文档

jQuery mobile 被锁定到某些版本的 jQuery!你会发现一个文本

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

jQuery Mobile 1.3.0 支持 jQuery 核心 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.

更新

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

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

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

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