Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/222.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 如何集成jQuery和phone gap_Android_Jquery_Jquery Mobile_Cordova - Fatal编程技术网

Android 如何集成jQuery和phone gap

Android 如何集成jQuery和phone gap,android,jquery,jquery-mobile,cordova,Android,Jquery,Jquery Mobile,Cordova,我想使用phonegap创建一个应用程序,但我不知道如何将jquery设置为项目。请告诉我这些步骤以及应该从jquery移动网站下载什么。以下是基本文件结构 assets > www >js (your script files) >css (your style files) >libs (3rd party files) -jquer

我想使用phonegap创建一个应用程序,但我不知道如何将jquery设置为项目。请告诉我这些步骤以及应该从jquery移动网站下载什么。

以下是基本文件结构

assets
    > www
        >js
          (your script files)
        >css
          (your style files)
        >libs
          (3rd party files)
          -jquery.*.min.js
          -cordova.*.js
          -jquery.mobile.*.min.js
      -index.html

这是一个基本模板(index.html)


你好,世界
你好,世界!

这里是基本的文件结构

assets
    > www
        >js
          (your script files)
        >css
          (your style files)
        >libs
          (3rd party files)
          -jquery.*.min.js
          -cordova.*.js
          -jquery.mobile.*.min.js
      -index.html

这是一个基本模板(index.html)


你好,世界
你好,世界!

Html代表用户的UI视图,您可以使用 下载最新的Jquery mobile并将其放入asset/www/。。现在,您可以通过在html中添加它来在Phonegap中使用它的功能

<script  src="../jquery file name.js"></script>


现在,您可以使用java脚本或jquery获得html中任何视图的功能。

html代表用户的UI视图,您可以使用 下载最新的Jquery mobile并将其放入asset/www/。。现在,您可以通过在html中添加它来在Phonegap中使用它的功能

<script  src="../jquery file name.js"></script>


现在,您可以使用java脚本或jquery获得html中任何视图的功能。

您可能会发现这些链接很有用:,,您可能会发现这些链接很有用:,