官网文档:
http://docs.phonegap.com/en/edge/guide_overview_index.md.html
http://cordova.apache.org/
http://cordova.apache.org/docs/en/3.4.0/guide_overview_index.md.html#Overview
中文文档:http://www.phonegapcn.com/
各系统对插件功能支持情况:http://cordova.apache.org/docs/en/5.0.0/guide_support_index.md.html#Platform%20Support
Cross-platform (CLI) workflow
CLI (described in The Command-Line Interface)
一、基本操作
安装cordova: npm install -g cordova
创建APP: $ cordova create hello com.example.hello HelloWorld
hello指所创建的APP目录名称
com.example.hello指域名标识,可能过config.xml修改
HelloWorld指APP名称,可能过config.xml修改
添加支持平台(需进入当前APP所在目录):
$ cordova platform add ios
$ cordova platform add amazon-fireos
$ cordova platform add android
$ cordova platform add blackberry10
$ cordova platform add firefoxos
$ cordova platform add wp8
$ cordova platform add windows
$ cordova platform add amazon-fireos
$ cordova platform add android
$ cordova platform add blackberry10
$ cordova platform add firefoxos
查看当前支持的平台: $ cordova platforms ls
删除支持的平台:
$ cordova platform remove blackberry10
$ cordova platform rm amazon-fireos
$ cordova platform rm android
构建APP: $ cordova build
构建指定平台APP: $ cordova build ios
运行prepare后可修改指定平台下cordova生成的代码,再通过compile打包
$ cordova prepare ios
$ cordova compile ios