Home >WeChat Applet >Mini Program Development >Use rich-text to implement ul function in mini program (code)

Use rich-text to implement ul function in mini program (code)

不言
不言Original
2018-08-10 13:58:256326browse

The content of this article is about using rich-text to implement ul function (code) in small programs. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.

 <rich-text nodes="{{nodes}}" class=&#39;nodes&#39;></rich-text>
 nodes: [{
      name: "ul",
      attrs: {
        style: "",        class: "nodes_ul"
      },
      children: [
        {
          name: "li",
          attrs: {
            style: "",            class: "nodes_li"
          },
          children: [{
            type: "text",
            text: &#39;礼品卡请在有效期内登录官网进行绑定使用&#39;
          }],
        }, {
          name: "li",
          attrs: {
            style: "",            class: "nodes_li"
          },
          children: [{
            type: "text",
            text: &#39;流量包为当月有效,请及时使用&#39;
          }],
        }]
    }],

Related recommendations:

Code implementation for deleting and editing the bank card management module in the WeChat applet Didi when you slide it to the left

What are the similarities and differences between vue projects and WeChat mini programs?

The above is the detailed content of Use rich-text to implement ul function in mini program (code). For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn