I wrote my blog for the first time and paid more attention to it. I saw phoneGap a few days ago, and then I wanted to buy z10 again. Then I began to think about it myself. First I saw phonegap3.0, and I was shocked. Since it is different from the previous version, it is good or bad, official documents are not easy to understand. Easy to build.
First download nodejs, and then run the cmd command.
npm install -g phonegap
Npm is like the yun installer in linux. For details, refer to the nodejs book. Note: I restarted nodejs after installing it. I don't know what I just installed. The npm command seems useless.
650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/09443320G-0.jpg "title =" phonegap installation directory "alt =" 141520.15.jpg"/>
I saw phonegap and thought it was the same as before. This time it was not so troublesome. It was solved by the cmd command.
650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/09443312S-1.jpg "title =" cmd "alt =" 142158373.jpg"/>
Next, press phonegap-help to get his usage method. The official website documents are a bit difficult. Let's take a look at cmd and look at his documents. Otherwise, students like me will be tired. Next, all the commands about phonegap must start with phonegap. Therefore, some commands in his document are not added with phonegap, and I cannot beat it... Depressed for a long time.
Create:
phonegap create hello com.example.hello HelloWorld
First, use the cd command in cmd to enter the directory you want to create and use the above command.
The first parameter is the created code directory. The second is the optional parameter, and the second is the Reverse Domain identifier. I feel a bit confused about the java package. The third is the program display text. I don't know what it is, I think it is the text displayed on the page after the mobile phone is installed. I guess the mobile phone is broken and I didn't test it ).
Next, let's take a look at your directory. For more information, see build.phonegap.com for cloud packaging. You can only package one app for free. Next we will talk about local packaging. In addition, mobile networks in Nanjing cannot directly download the app you have packaged on this website. China Unicom can)
This article is from the "shidoudou" blog, please be sure to keep this source http://shidoudou.blog.51cto.com/4497390/1297711