Introduction to Hybrid Development

(1) Develop three mobile models

(1) Native App: (Native APP) students who write App, such as ios, Android, etc.

(2) Hybrid App: (Hybrid development), h5 page is embedded in App

(3) Web App: Open h5 page with mobile browser

 

(2) Advantages and disadvantages:

(1) Native App: basically can operate any mobile phone system, such as (video, scan code, get address book, call), etc.

(2) Hybrid App: Hybrid development. If you want h5 to operate the mobile phone system, you need the app to cooperate with the front end and provide the corresponding operation api for the front end

The front-end can also do mixed development by itself, and requires the use of languages, such as uni app and other frameworks. The framework also provides functions such as scan code video

(3) Web App: Basically no function to operate the mobile phone system

 

(3) Some frameworks that can be packaged to generate apps on the front end

(1) Similar to vue: weex, uniapp

uniapp needs to download its own editor (HBuilderX ), and package it with the editor. Now uniapp is generally popular

(2) Similar to react: react Native

 

(五) uniapp

The syntax of uniapp is similar to the combination of applet and vue. After packaging (release cloud packaging), give you an address, and then take this address to the browser to download the app

Vue projects can also be packaged using HBuilderX to generate apps

 

(6) Interaction between h5 and native app

App encapsulates the method, h5 to call, sdk means encapsulation code

 

 

Guess you like

Origin blog.csdn.net/Luckyzhoufangbing/article/details/108835083