Cordova is an open source mobile development framework. It allows you to use standard Web technologies such as HTML5, CSS3, and JavaScript for Cross-platform development, avoiding the native development language of each mobile platform. Applications are executed in a targeted package for each platform and rely on compliant API bindings to access the camera, microphone, sensor, data, and network status of each device.
Cordova Official website: http://cordova.apache.org/, currently the latest version is 3.4.0, document description: http://cordova.apache.org/docs/en/3.4.0/.
Cordova Installation Steps
Command-line Installation
Download and install Node.js, address: http://nodejs.org/.
The administrator opens a command prompt and enters: NPM install-g Cordova, as shown in the following illustration:
The execution may be slow, please be patient, if there is a problem in the middle, you can perform a new installation command until the installation is successful. After the installation is successful, the command prompt line prints out the directory of Cordova related resources, referring to the above figure.
Execute the following command to add the platform.
>cordova Create Test Com.example Testcordova
>CD Test
>cordova Platform Add WP8
The figure below is a screenshot of the command execution.
Open the project directory of platforms, there will be a WP8 directory, this directory is the WP8 project. I am using the Cordova 3.4 version, some of the project files at the beginning of garbled, it seems that there is a BOM head, and temporarily did not find an effective treatment scheme, can only be directly modified by the file.
See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/OS/extra/