WeChat mini-program development series (2) detailed explanation of the use of development components

Source: Internet
Author: User
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!

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.