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

不言
Release: 2018-08-10 13:58:25
Original
6281 people have browsed it

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>
Copy after login
 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;
          }],
        }]
    }],
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!