2013-02-13 56 views
0

我刚刚下载的jQuery移动1.2.0错误jQuery Mobile的

http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js

但我有这个错误 遗漏的类型错误:无法未定义

读取属性 'MSIE' 我有同样的错误时在Android设备上运行该项目与PhoneGap的

<!DOCTYPE HTML> 
<html> 
    <head> 
     <title>PhoneGap</title> 
     <link rel="stylesheet" href="css/jquery.mobile-1.2.0.min.css" /> 
     <link rel="stylesheet" href="css/jquery.mobile.structure-1.2.0.min.css" /> 
     <link rel="stylesheet" href="css/jquery.mobile.theme-1.2.0.min.css" /> 
    </head> 
    <body> 
    <h1>Hello PhoneGap !!!</h1> 
    <script type="text/javascript" charset="utf-8" src="javascript/cordova-2.4.0.js"></script> 
    <script type="text/javascript" charset="utf-8" src="javascript/jquery/jquery-1.9.1.min.js"></script> 
    <script type="text/javascript" charset="utf-8" src="javascript/jquery/jquery.mobile-1.2.0.min.js"></script> 
    </body> 
</html> 

感谢

回答

1

根据此页:http://jquerymobile.com/test/#/test/docs/about/getting-started.html

“jQuery Mobile的1.3 RC1(1.3.0 RC.1)的作品使用jQuery核心的版本从1.7.0到1.9.0。”

所以我的猜测是,如果您升级到jQuery Mobile 1.3 RC1,至少需要将jQuery核心退回到1.9.0。

看起来1.8.2的jQuery 1.2.0:http://jquerymobile.com/demos/1.2.0/

+0

谢谢,它适用于1.3版本这个版本有很多风险吗? – Ajouve 2013-02-13 21:25:55

+0

我有限的经验是,jQuery手机对核心版本非常敏感。这就是为什么这个答案如此之快。我已经碰到它了。 – Pete 2013-02-13 21:30:48

+0

感谢您的帮助 – Ajouve 2013-02-13 21:33:30

0

您可以

jQuery的迁移,1.1.1.min

<script src="~/Scripts/jquery-migrate-1.1.1.min.js"></script> 

添加到您引用的脚本列表

相关问题