table of Contents
The advantages of small programs
The advantages of small programs
- Lightweight, easy to develop
- Rich components, simple wording
- Based on micro-channel environment for user-friendly
Create a project
New small project selection procedures, AppID selected test number
Click Click New Test No.
Creating pages with APP.json
Which pages indicate that the page, pages / index represents the default page (ie Home), pages / logs on behalf of log pages
Further down you can see app. *** three files in the order are the main logic file applet, page information data file, page style files, which are global file
In the pages in the new folder testPage01, then Page created in the folder, right, folder get the following four documents
At this point we open app.json file, you can see more than a line, each page must first register app.json page in the pages to find information in the registered order here determines the load order, you can put the last line on the first line, after testing to obtain the second web of FIG.
Others, such as window is the window of the initial default configuration configuration, is your new page does not write these defaults is this,
What specifically do you mean by each of the
Consider the following link to open the link, copy and paste into it to understand just fine
Baidu translator
PS: you can press ctrl + S to save the compiler
Each file usefulness
Return to the page you just created
The first ****. Js
Logic processing file of the page, which provides a number of built-in micro-channel method, are related to the default display page loads created, each with annotation what
The second ***. Json file
The page's data file
To give an example of this is the head of the micro-letter navigationBarTitleText this page WeChat (default WeChat), in the circle of the comma have nothing to say it. . . .
Third ****. Wxml file
Displays the file of the page, this page shows anything in this file
Control is the basis of the same name HTML those, button, view, cover_view, lable, text ..... etc.
PS:设置这个页面有什么,有鼻子有脸还是耳朵等等
第四个 ****.wxss文件
该页面的样式文件,这个页面怎么显示
Ps:鼻子耳朵脸长啥样