This article describes how to use the development components of the mini-program development series (II). This article describes how to use the development components of the mini-program development series (II ).
I. Preliminary Use of development components
1: build a small program Project
2: Please refer to the content in the following link. this is the official development guide for applets:
Https://mp.weixin.qq.com/debug/wxadoc/dev/component/button.html? T = 20161222
3: you can copy some example programs to your project and use the components of the applet, as shown in 1:
We are at first. in wxml, you can write the layout of the first page. in example 1, we write a string: "1234567890abcdefg". below this character, we write a button of the applet, the content displayed by the button is "default" and type = "default" --- this indicates that the button is the default display effect. 1 The simulator on the left shows the left and right sides of the dimmed button as the rounded corner.
Note: many netizens may find that the simulator does not respond after coding the code in the applet development tool and clicking the "compile" button at the bottom left of the applet development tool, in fact, this is because, after writing the code, you should press Ctrl + s on the keyboard to save the code, and then click "compile" to display the corresponding code effect in the simulator.
The above is a detailed description of the use of the development components of the mini-program development series (II). For more information, see other related articles in the first PHP community!