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

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

我创建了一个示例 index.html 文件并包含了最新的 jquery (3.1.0) 和 jquery 移动版 (1.4.5)。

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

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

这一行:

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

当我尝试包含 jquery-1.11.2 时没有问题。谁能告诉我为什么?

Look this Documentation

jQuery 手机被锁定到 jQuery 的某些版本!你会发现

的文字

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 移动版现在也适用于 2.x 版本,尽管版本 3 仍然 returns 提到的错误。

使用最新版本1.5 (可在以下位置获得: code.jquery.com):

http://code.jquery.com/mobile/1.5.0-rc1/jquery.mobile-1.5.0-rc1.min.js