//在任意非中文目录下创建项目目录:如E:\cordova
//按住SHIFT+鼠标右键,点“在此处打开命令窗口”
cordova create myapp com . yourname . myapp MyApp
//myapp为目录名;com.yourname,myapp为项目路径;MyApp为项目名
//此时就会有 E:\cordova\myqpp
cd myapp //进入到项目目录
//添加平台:
cordova platform add ios
cordova platform add android
//移除平台:
cordova platform rm android
//编译平台:
cordova build android
[实为: ]
cordova prepare android
cordova compile android
//查看平台:
cordova platfrom list
//添加插件:(更多插件:http://plugins.cordova.io/)
cordova plugin add org . apache . cordova . device //设备API
cordova plugin add org . apache . cordova . network - information //网络(事件)
cordova plugin add org . apache . cordova . battery - status //电池(事件)
cordova plugin add org . apache . cordova . device - motion //加速器
cordova plugin add org . apache . cordova . device - orientation //罗盘
cordova plugin add org . apache . cordova . geolocation //定位
cordova plugin add org . apache . cordova . camera //摄像头
cordova plugin add org . apache . cordova . media - capture //媒体文件处理
cordova plugin add org . apache . cordova . media //媒体文件处理
cordova plugin add org . apache . cordova . file //文件访问
cordova plugin add org . apache . cordova . file - transfer //文件传输
cordova plugin add org . apache . cordova . dialogs //对话框
cordova plugin add org . apache . cordova . vibration //震动
cordova plugin add org . apache . cordova . contacts //联系人
cordova plugin add org . apache . cordova . globalization //全球化
cordova plugin add org . apache . cordova . splashscreen //闪屏
cordova plugin add org . apache . cordova . inappbrowser //打开新的浏览器窗口
cordova plugin add org . apache . cordova . console //调试控制台
//查看已安装:
cordova plugin ls
//删除插件:
cordova plugin rm org . apache . cordova . console
//更新Cordova:
npm update - g cordova
//更新平台项目:
cordova platform update android
//Cordova帮助:
cordova help