Such as: Android系统and iOS系统are two different host environments.
The Android version of the WeChat App cannot run in the iOS environment, so Android is the host environment for Android software.脱离了宿主环境的软件是没有任何意义的!
2. The host environment of the applet
3. Contents contained in the Mini Program host environment
communication model
operating mechanism
components
API
2. Communication model
1. Subject of communication
2. Mini-program communication model
3. The process of starting the applet
Download the code package of the applet to the local
Parse the app.json global configuration file
Execute the app.js applet entry file,调用App()创建小程序实例
Render the home page of the applet, and the applet is started
4. The process of page rendering
Load the .json configuration file of the parsing page \
Load the .wxml template and .wxss styles for the page
Execute the .js file of the page,调用 Page()创建页面实例
Page rendering is complete
3. Components
1. Classification of components in applets
2. Commonly used view container components
3. Basic use of view components
4. Basic usage of scroll-view component
5. Basic use of swiper and swiper-item components
6. Common properties of swiper components
7. Commonly used basic content components
8. Basic use of text components
9. Basic use of rich-text components
10. Other common components
11. Basic use of button buttons
12. Basic usage of image component
13. The mode attribute of the image component
4. APIs
1. Mini Program API Overview
小程序中的 API 是由宿主环境提供的, through these rich mini-program APIs, developers can easily call the capabilities provided by WeChat, such as obtaining user information, local storage, payment functions, etc.