Home > WeChat Applet > Mini Program Development > Do you understand how mini programs work?

Do you understand how mini programs work?

王林
Release: 2021-01-07 10:42:15
forward
3645 people have browsed it

Do you understand how mini programs work?

Mini program is an application that can be used without downloading and installation. It realizes the dream of having applications "at your fingertips". Users can open the application by scanning or searching. . It also embodies the concept of "use and go", and users do not need to worry about installing too many applications. Applications will be everywhere and available at any time, but there will be no need to install or uninstall them.

(Learning video sharing: Programming video)

Who is suitable to do small programs: Anyone who knows a little code can do it.

Who knows what technology to develop small programs quickly: Front-end developers, because they need to adjust the page style.

Is it easy to get started: Very easy

Attached below is the framework diagram of the small program that I understand. Please point out if there is anything wrong.

Do you understand how mini programs work?

Let’s look at it from bottom to top:

1. The bottom layer is the WeChat app. When we release the version, the mini program development tool will The code and framework are packaged together. When we open the mini program in WeChat, WeChat will actually download the packaged code to the WeChat app, so that we can run our mini program in WeChat just like in the development tools. .

2. The native layer is the framework of the mini program, just like the react framework we use. This framework encapsulates UI layer components and logic layer components. These components can call the mobile phone hardware through the interface provided by the WeChat app. information.

3, the top orange frame is the view layer and logic layer that we really need to operate. The interaction between the view layer and the logic layer is through data passing through the native layer. Both the view layer and the logic layer can call components and methods encapsulated in the native framework.

Generally speaking, when we perform event operations on the view layer, the data will be changed, and the data will be passed to the logic layer through the native framework, and conversely the logic layer can affect the view layer.

Related recommendations: Mini Program Development Tutorial

The above is the detailed content of Do you understand how mini programs work?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template