Home  >  Article  >  WeChat Applet  >  WeChat applet MINA file structure

WeChat applet MINA file structure

黄舟
黄舟Original
2017-01-16 15:26:431340browse

File structure

The framework program contains an app that describes the overall program and multiple pages that describe their respective pages.

The main part of a framework program consists of three files, which must be placed in the root directory of the project, as follows:

File Required Function

app .js Yes Mini Program Logic

app.json Yes Mini Program Public Settings

app.wxss No Mini Program Public Style Sheet

A frame page consists of four files. They are:

## Text type Required Function

js Yes Page logic

wxml Yes Page structure

wxss No Page style Table

json No Page configuration

Note: In order to facilitate developers to reduce configuration items, we stipulate that the four files describing the page must have the same path and file name.

The above is the content of the WeChat applet MINA file structure. For more related content, please pay attention to the PHP Chinese website (www.php.cn)!


Statement:
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