【问题标题】:AppLaud + jQuery Mobile 1.3.1 + jQuery 1.10.1 + Phonegap 1.9.0 (why not work?)AppLaud + jQuery Mobile 1.3.1 + jQuery 1.10.1 + Phonegap 1.9.0(为什么不工作?)
【发布时间】:2013-07-04 15:43:44
【问题描述】:

朋友们, 我开始使用 PhoneGap + jQuery Mobile 开发 AppLaud 应用程序。

鼓掌开始了一个新项目: - jQuery 1.7.2 - jQuery Mobile 1.3.1 -PhoneGap 1.9.0

我的文件夹资产如下:

- [assets]
- [www]
--- [jquery.mobile]
---- [images]
---- jquery-1.7.2.min
---- jquery.mobile-1.3.1.css
---- jquery.mobile-1.3.1.js
---- jquery.mobile-1.3.1.min.css
---- jquery.mobile-1.3.1.min.js
--- cordova-1.9.0.js
--- index.html

我的 index.html 文件包含以下内容:

<!DOCTYPE HTML>
<html>
  <head>
    <meta name="viewport" content="width=320; user-scalable=no" />
    <meta http-equiv="Content-type" content="text/html; charset=utf-8">
    <title>Minimal AppLaud App</title>

      <script type="text/javascript" charset="utf-8" src="cordova-1.9.0.js"></script>
      <script type="text/javascript" charset="utf-8">

        var onDeviceReady = function() {
            document.getElementById("devready").innerHTML = "OnDeviceReady fired.";
        };

        function init() {
            document.addEventListener("deviceready", onDeviceReady, true);
        }   
</script>  

  </head>
  <body onload="init();" id="stage" class="theme">
    <h2>Minimal AppLaud App</h2>

    <p>Your app goes here.</p>
    <p>
    <span id="devready">onDeviceReady not fired.</span>
    </p>

  </body>
</html>

我在 Eclipse IDE 中收到以下错误:

“令牌语法错误”无效的正则表达式选项',可用的准确更正“- jquery.mobile-1.3.1.min.js - 第2行

“默认情况已经定义” - jquery.mobile-1.3.1.js - 2034行

“默认情况已定义” - jquery.mobile-1.3.1.js - 第8700行

可能会发生什么? 由于这些错误,我什至无法测试应用程序。

【问题讨论】:

  • 您使用的是 jquery-1.7.2.min 还是 jquery-1.10.1.min,就像您在标题中提到的那样?
  • @Gajotres,对不起,我使用的是 1.7.2

标签: android jquery-mobile cordova applaud


【解决方案1】:

我设法解决了这个问题。 实际上是一些内部错误Eclipse。 我在 Project> Properties> Builders

中禁用 JavaScript Validator 就足够了

如果有人遇到这个问题,这里是解决方案。

【讨论】:

    猜你喜欢
    • 2013-04-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多