鼓掌+ jQ​​uery Mobile的1.3.1 +的jQuery + 1.10.1 PhoneGap的1.9.0(为什么不工作?) [英] AppLaud + jQuery Mobile 1.3.1 + jQuery 1.10.1 + Phonegap 1.9.0 (why not work?)

查看:238
本文介绍了鼓掌+ jQ​​uery Mobile的1.3.1 +的jQuery + 1.10.1 PhoneGap的1.9.0(为什么不工作?)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,
我开始在鼓掌应用与PhoneGap的+ jQuery Mobile的开发。

friends, I'm starting to develop in AppLaud applications with PhoneGap + jQuery Mobile.

赞誉启动了一个新项目:
- JQuery的1.7.2
- jQuery Mobile的1.3.1
- PhoneGap的1.9.0

Applaud started a new project: - 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文件包含以下内容:

and my index.html file contains the following:

<!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:

I am getting the following errors in the Eclipse IDE:

无效的正前pression选项令牌语法错误,可准确校正 - jquery.mobile-1.3.1.min.js - 2号线

"Syntax error on token" Invalid Regular Expression Options', the accurate correction available "- jquery.mobile-1.3.1.min.js - line 2

默认情况下已经被定义 - jquery.mobile-1.3.1.js - 在线2034

"The default case is already defined" - jquery.mobile-1.3.1.js - line 2034

默认情况下已经被定义 - jquery.mobile-1.3.1.js - 线8700

"The default case is already defined" - jquery.mobile-1.3.1.js - line 8700

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

What might be happening? With these errors I can not even test the application.

推荐答案

我设法解决这个问题。
实际上是一些内部错误的Eclipse。
足以禁用我的 JavaScript的验证中的项目>属性>建筑工地

I managed to solve the problem. Actually is some internal error Eclipse. sufficed I disable JavaScript Validator in Project> Properties> Builders

如果有人一直有这个问题,这里的解决方案。

If someone has been having this problem, here's the solution.

这篇关于鼓掌+ jQ​​uery Mobile的1.3.1 +的jQuery + 1.10.1 PhoneGap的1.9.0(为什么不工作?)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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