By default, cordova create
script generates a skeletal web-based application whose start page is the project'swww/index.html
file. Any initialization should be specified as part of the deviceready event handler defined inwww/js/index.js
.
cordava默认使用create脚本命令生成基于web的骨架应用,该应用起始页面为www/index.html,
任何初始化作为设备准备事件处理特殊部分,被定义在www/js/index.js(事件响应写在js中)
全平台编译源码
Run the following command to build the project for all platforms:
$ cordova build
You can optionally limit the scope of each build to specific platforms - 'ios' in this case:只在ios平台编译
$ cordova build ios