Interpreting and analyzing WeChat mini-app components: 5. text

Source: Internet
Author: User
Interpretation and analysis of Applet components: 5. text, Text component description:

Text is the text displayed in the applet.

The following is the WXML code:

[XML]View plain text Copy code

 
  
   
I am a text component
  
 
 
  
{Text }}
 

The following is the JS code:

[JavaScript]View plain text Copy code

Page ({/*** initialize data */data: {text: "I am the text bound to the js file"}, onLoad: function (options) {// parameters brought about by page initialization options for page jump}, onReady: function () {// page rendering completed}, onShow: function () {// page display }, onHide: function () {// page hiding}, onUnload: function () {// page closing }})



Main Attributes of text:

Attribute

Description

Font-size Font size
Color Font color
Font-style Font style
Margin-top Top margin of font
Margin-bottom Font bottom margin

The above is the explanation and analysis of the mini-program components: 5. details of text. 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.