WeChat mini-program MINA file structure, WeChat mini-program mina

Source: Internet
Author: User

MINA file structure, mina

File structure

The Framework Program contains an app describing the overall program and multiple pages describing the respective page.

A Framework Program consists of three objects, which must be placed in the project root directory, as follows:

File Required Function
App. js Yes Applet Logic
App. json Yes Mini-app public settings
App. wxss No Mini-app public style sheets

A framework page consists of four files:

File Type Required Function
Js Yes Page Logic
Wxml Yes Page Structure
Wxss No Page Style Sheet
Json No Page Configuration

Note: To help developers reduce configuration items, the four files on the page must have the same path and file name.

Thank you for reading this article. I hope it will help you and beginners. Thank you for your support for this site!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.