What files do the main parts and pages of Mini Program consist of?
This article mainly explains "what files are made up of the main part of Mini Program and the page", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next, let the editor take you to learn what the main part of Mini Program and the page are composed of.
File structure
Mini Program contains an app that describes the overall program and a number of page that describe their respective pages.
The main body of a Mini Program consists of three files, which must be placed in the root directory of the project, as follows:
The role of required documents
App.js is Mini Program logic
App.json is the Mini Program public setting
App.wxss No Mini Program Common style sheet
A Mini Program page consists of four files, namely:
Required role of file type
Js is page logic
Wxml is the page structure
Wxss No Page style sheet
Json No Page configuration
Note: to make it easier for developers to reduce configuration items, the four files that describe the page must have the same path and file name.
At this point, I believe you have a deeper understanding of what the main part of Mini Program and the page are made of. You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!