H5+app's understanding

Source: Internet
Author: User

Read two times the official overview of the technology of h5+ and how his own hbuilder and h5+ to carry out an ecological integration, summed up their own understanding and some questions about it.

What is 1.h5+?

Document:

HTML5 Plus mobile app, referred to as 5+app, is a HTML, JS, CSS based on the mobile phone app, this app can call the native ability of the mobile phone via the extended JS API, realize the same powerful function and performance as the native App.

It is also very clear that we are writing the app using the Web language, that is, the H5, but we want to interact with the mobile device, call some of the original things on the phone, this time h5+ "+" is embodied in the original basis through the exaggerated JS API, For us to invoke some of the native things. Roughly do such a thing, with the JS language to the original function wrapped up, as a JS object, for external JS call. If the native language in the operation of a native function, such as the camera, should be the original speech directly awake device, then h5+, need to JS language access Api,api to call the device, more than the previous one step, this in the later will not be a loss of performance, this is my question it.

Document:

The html5+ specification is an open specification that allows a three-party browser manufacturer or other handset runtime manufacturer to implement.

Because it is an open standard, there is no strict standards, in general, we should be running to achieve such a function to go, so each family package of things. The invocation of these native capabilities under Hbuilder is divided into two types, one universal, that is, cross-platform, For example, Plus.speech Android and iOS can write this, there is a platform-specific features, according to the characteristics of each mobile phone system independent call, through the Plus.ios and plus.android to invoke, these hundreds of thousands of kinds of native API encapsulated JS objects are saved in the Native.js this article API manuals are also available on the official website.

Document:

Mobile apps that are developed using html5+ are not web pages on mobile. This is the easiest place for novices to confuse. Mobile Web files are stored on a Web server, while the files of the app are stored locally on the phone, and the HTML, JS, and CSS files for the mobile app are packaged in a native installation package such as an IPA or apk to run on the mobile client.

This part of the content is to explain one thing, our things and WebApp is not the same, because Apple and Google are not allowed to simply nested webview shell of the webapp shelves, they think it is a spam app. The app developed by h5+ is really different from the shell app. First of all, they do have local memory files, and an app basically has a local shelf and a control layer of things that are local. But it's also different from the hybrid development app, because the hybrid development app is co-existing between the native layer and the H5 layer, or there is a higher-end interactive, sibling-level communication (... Limited strength, can only be described in general to describe this feeling, and h5+ is indeed a hybrid, but the original and H5 is not a sibling relationship, the original API is more like the relationship between the front and back, API as the support behind the H5, you need to do the native for you, the API will be for the H5 demand replenishment, is a one-way behavior, purely by the API native layer for the H5 layer passed.

Conceptual things like this, followed by some debugging, packaging, release details, in short h5+ can be understood as H5 in the mobile development Language bar. For example, some apps can be said to be developed in OC language, you can say this is h5+ development. But after all, h5+ is not a separate programming language.

In addition, the day before yesterday to the MUI summary, because just to see some online people's evaluation, I feel that the write is still biased, MUI should be calculated based on the nativejs of some common native objects including the UI layer has been integrated encapsulation, also said just a part of the function. Indeed, it would be more appropriate to compare the RN with h5+ as a whole if it is really compared.

Continue learning

H5+app's understanding

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.