PhoneGap的WWW文件夹 [英] Phonegap www folder

查看:163
本文介绍了PhoneGap的WWW文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在PhoneGap的初学者,我想了解一些关于WWW文件夹。 我创建了一个项目,只有iOS平台。

I'm a beginner in PhoneGap and I'm trying to understand something about www folder. I created a project with only ios platform.

我看到有两个WWW文件夹:

I saw that there are two www folder :

  • WWW项目的根文件夹
  • WWW的平台/ IOS文件夹

我的问题是:

  • 我们如何使用他们两个?我必须只使用其中的一个?
  • 我们如何共享HTML / JS / CSS code与其他平台?

谢谢!

推荐答案

  • WWW 文件夹中的项目的根文件夹中包含的全局文件在所有平台。这是你要修改的文件夹。

  • The www folder in the root folder of the project contains the global files for all platforms. This is the folder that you should edit.

    WWW 文件夹平台/ IOS 是专为iOS平台。此文件夹中从全局 WWW 文件夹中建立当你运行科尔多瓦构建 。你不应该直接编辑该文件夹 - 如果您想自定义特定的平台,请参阅<一href="http://docs.phonegap.com/en/edge/guide_cli_index.md.html#The%20Command-line%20Interface_customize_each_platform">Customise科尔多瓦CLI文档的每个平台部分。

    The www folder in platforms/ios is solely for the iOS platform. This folder is built from the global www folder when you run cordova build. You should not edit this folder directly - if you wish to customise a specific platform, see the Customise Each Platform section of the Cordova CLI documentation.

    如果您有更多的平台(科尔多瓦平台添加&LT;平台&GT; ),那么这些平台也有自己的 WWW 从全球 WWW 文件夹时运行内置的文件夹科尔多瓦建设[台]

    If you had more platforms (cordova platform add <platform>), then those platforms would also have their www folders built from the global www folder when you run cordova build [platform].

    这篇关于PhoneGap的WWW文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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