May 18, 2021 WeChat Mini Program Development Document
The MINA program contains an app that describes the overall program and multiple page that describes the respective pages.
The main body part of a MINA program consists of three files that must be placed at the root of the project, as follows:
File | Necessary | Role |
---|---|---|
app.js | Is | Small program logic |
app.json | Is | Small program public settings |
app.wxss | Whether | Small program public style sheet |
A MINA page consists of four files:
The file type | Have to | Role |
---|---|---|
wxml | Is | The page structure |
wxss | Whether | The page style sheet |
Json | Whether | The page configuration |
Js | Is | Page logic |
Note: In order for developers to reduce configuration items, we specify that the four files describing the page must have the same path and file name.