PhoneGap + android:2'www'文件夹在源代码中:哪个要修改? [英] PhoneGap + android: 2 'www' folder in source code: which to modify?

查看:127
本文介绍了PhoneGap + android:2'www'文件夹在源代码中:哪个要修改?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从头开始创建一个phonegap 3应用程序,我添加平台android和buid +模拟。



官方入门指南: http://docs.phonegap.com/en/edge/guide_cli_index。 md.html#%20命令行%20接口



我开始修改代码,我注意到在hello主目录和一个位于platforms \android\assets下的目录

我必须修改哪一个?



如果我添加了另一个平台?我对代码的修改将被传递到其他平台的代码?



修改第一个www文件夹中的文件(在主目录中)。


解决方案

/ p>

每个 phonegap run android 将覆盖platforms / android中的内容。


When create from scratch a phonegap 3 application, i add platform android and buid + emulate.

See here, official getting started guide: http://docs.phonegap.com/en/edge/guide_cli_index.md.html#The%20Command-line%20Interface

I start to modify code and I notice that there is a 'www' folder under "hello" main directory, and one under platforms\android\assets

Which one must I modify ?

If then I add another platform ? My modification to code will be passed to other platform's code ?

解决方案

Modify the files in the first "www" folder (in your main directory).

Each phonegap run android will overwrite the stuff in "platforms/android".

这篇关于PhoneGap + android:2'www'文件夹在源代码中:哪个要修改?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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