HTML5 Plus Application Overview
HTML5 Plus mobile App, referred to as 5 App, is an App written based on HTML, JS, and CSS that runs on the mobile phone. This App can call the native capabilities of the mobile phone through the extended JS API to achieve the same powerful functions as the native App. and performance.
HTML5 Plus Specification
When developing mobile apps through HTML5, you will find that HTML5 does not have many capabilities. In order to make up for the lack of HTML5 capabilities, the www.html5plus.org organization was established under the guidance of W3C China to launch the HTML5 specification.
The HTML5 specification is an open specification that allows third-party browser manufacturers or other mobile phone runtime manufacturers to implement it.
HTML5 extends the JavaScript object plus, allowing js to call system capabilities that cannot be implemented or poorly implemented by various browsers, such as device capabilities such as cameras, gyroscopes, file systems, etc., and business capabilities such as uploading and downloading, QR codes, maps, and payments. , voice input, message push, etc.
HBuilder's native mobile phone capability calls are divided into two levels:
- Capability calls across mobile platforms are all in the HTML5 specification, such as QR codes and voice input, using plus.barcode and plus.speech. Write once and run across platforms.
- Native.js is another innovative technology. There are more than 400,000 native APIs in mobile OS, and a large number of APIs cannot be used by HTML5. Native.js encapsulates hundreds of thousands of native APIs into js objects, and you can directly adjust the native APIs of ios and android through js. This part is no longer cross-platform, and is written as plus.ios and plus.android respectively, such as adjusting the ios game center or creating a shortcut on the Android phone desktop.
Statement:
All resources on this website are contributed and published by netizens, or reprinted by major download sites. Please check the integrity of the software yourself! All resources on this website are for learning and reference only. Please do not use them for commercial purposes, otherwise you will be responsible for all consequences incurred! If there is any infringement, please contact us to delete and remove it. Contact information: admin@php.cn