我在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
文件夹中建立当你运行科尔多瓦构建
。你不应该直接编辑该文件夹 - 如果您想自定义特定的平台,请参阅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.
如果您有更多的平台(科尔多瓦平台添加<平台>
),那么这些平台也有自己的 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]
.
相关推荐
最新文章