WeChat applet rich-text usage, Applet rich-text

Source: Internet
Author: User

How to Use the rich-text applet, the rich-text Applet

How to Use the rich-text Applet

Rich-text

  • Attribute: nodes type: Array/String node list/HTML String
  • Class and style attributes are supported globally, and id attributes are not supported.
  • Node type: type = node. The name tag String supports some trusted HTML nodes. The attrs attribute Object does not support some trusted attributes and follows the Pascal naming method, children subnode list Array no structure consistent with nodes
  • Node type: type = text, text String is entities supported
  • The String type is not recommended for nodes, and performance will decrease.
  • Events of all nodes are blocked in the rich-text component.
  • The attrs attribute does not support id and class.
  • The name attribute is case insensitive.
  • If an untrusted HTML node is used, the node and all its child nodes will be removed.
  • Img labels only support network images.
<rich-text nodes="{{nodes}}" /><rich-text nodes="{{nodes1}}" /><rich-text nodes="{{nodes2}}" />

This. setData ({nodes: "

The above is the introduction of the small program rich-text. If you have any questions, please leave a message or go to the community on this site for discussion. Thank you for reading this article and hope to help you. Thank you for your support for this site!

Related Article

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.