Registration applet account:
Qq password account password
Be familiar with the applets publishing process
https://mp.weixin.qq.com/wxamp/home/guide?token=1004359632
Add Administrator
Small learning program documentation
https://developers.weixin.qq.com/miniprogram/dev/framework/
Download Development Tools
After opening the View appid
2 project directory
pages folder is stored for all pages
utils is a plug-in
app.js.spp.json.app.wxss global file
wxml is html components in these things called
Logical layer
Js is part of the logical layer, in each of two equatorial applet, is a is a app.js page.js
There is a app.js app () method for the applet registration page.js There is a page () method for page Register
For real column app () method, with the page getapp () This method can take app solid or column.
All information getcurrentpages () i used to obtain full security page stack like the current page are present here, the path of such a page. Jump can be used for routing.
For page.js
Each page consists of a Page () method, a registration page, data from the initial data life cycle. Event handler method.
Life Cycle is a process to load the page never fully completed.
json file
app.json This is a global configuration file
page.json used to configure the current item
wxml
1 Remember the kind of set up micro-channel offer
2 Data Rendering
3 rendering list
4 conditions rendering
5 template template
Event bindtap click event
Modify data using the original data this.setData ({arr: "123456"})
Be careful this point
webpack.config.js configuration compiler package es6 Code
npm install babel-loader babel-loader to load es2015 code. And translated into code es5