search
HomeWeChat AppletMini Program DevelopmentDo you understand how mini programs work?

Do you understand how mini programs work?

Jan 07, 2021 am 10:42 AM
Appletsworking principle

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!

Statement
This article is reproduced at:csdn. If there is any infringement, please contact admin@php.cn delete

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools