H5 Hybrid Development app configuration and the first project--blog Park Old Bull Lecture Hall

Source: Internet
Author: User

Some time ago someone asked me how to use H5 to develop the app, I happen to know the steps to stick out, there is no understanding of the place to give me a message, I revise. --Blog Park Lao Niu Big Lecture Hall

thought : First use Hbuilder development project, put oneself of project to paste into Apicloud project inside. The content is then packaged using the Apicloud content on the web.

Environment : hbuilder, Night God Simulator, Apicloud development tool.

hint : Because apicloud because the hint function is not good, so suggest if want to develop with hbuilder develop. After the development of the css,js,img stick inside the line.

first , first download a Apicloud development environment (Apicloud, like Hbuilder,myeclipse, is a software). --Blog Park Lao Niu Big Lecture Hall

Icon:

Second ,

1, enter Apicloud official website, apply for an account, enter Apicloud, fill in the user name, password

2, enter the Apicloud interface, create a Apiclode project.

3, I created a project Myfirstapp project, their own img,css,js, can be pasted into the project below,

4, find index.html, this is the project start item (starting from index.html). Similar to the Androidmanifest.xml file developed by Android, similar to the MAI function in Java.

5, which CSS and JS can not be imported.

6, Apiready = function () {startfull (); } is all JS and CSS loaded before loading the following code.

7, the contents of the Startfull () method,

Code:

<!DOCTYPE HTML><HTML><Head>    <MetaCharSet= "Utf-8">    <Metaname= "Viewport"content= "maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>    <Metaname= "Format-detection"content= "Telephone=no,email=no,date=no,address=no">    <title>Hello APP</title>   </Head><Body>      </Body><Scripttype= "Text/javascript">Apiready= function() {startfull (); }    functionStartfull () {Api.openwin ({//api) This is the API provided by Apicloud itself, which must be provided in Apicloud and can only be used in Apicloud. Name:'A1',//define the name of the page below.            Easy to jump page. URL:'./html3/a.html'//Jump to the page.         }); }    </Script></HTML>

8. Pictures:

Third

1, click Myfirstapp Project Right button,--Cloud synchronization--"Submit."

2, pictures, which Mysendapp is their own upload of the project.

3, click on their own project Mysendapp access, click the cloud compilation, so that their projects can be packaged into Android, can also be packaged into iOS.

4, if still and do not understand, leave a message.

5, if see How to use Apicloud test code, see my blog garden-old Cow Big lecture hall.

H5 Hybrid Development app configuration and the first project--blog Park Old Bull Lecture Hall

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.