Sign five (Development)

Today the use of network resources, the basics of small micro-letter search program development, instructional videos downloaded, due to the large number, you may have downloaded tomorrow, with the end of the original plan did not progress fast ,,,,,,,,

1, the body portion consists essentially of three files

1, app.js: small program logic initializes the APP;

2, app.json: Configuration applet, such as navigation, window, jumps, etc. page http request

3, app.wxss: Public style configuration

2, page consists of four files

1) js: logical page, corresponds to the control layer, also comprises a data portion

2) wxml: display page structure, corresponding to the view layer

3) wxss: page style sheet, pure front-end for assisting wxml show

4) json: page configuration, the configuration pages show some data, acting as part of the model

3,app.json

Global Configuration page file path, show window, set the network timeout, set up a multi-tab and so on.

pages
accepts an array, each of which is a string, which is specified by the applet page composition

 window

The status bar is used to set applet, navigation bar, title, window background color

tabs

Specifies the performance tab bar, and the corresponding page displayed when a tab to switch through tabBar configuration items.

tabBar array configuration, can be configured with a minimum of 2 and a maximum of five tab, tab sorted in order of the array

networkTimeout
may be provided various network request timeout

Guess you like

Origin www.cnblogs.com/PSLQYZ/p/12231678.html