小程序中用rich-text来实现ul功能 (代码)

本篇文章给大家带来的内容是关于小程序中用rich-text来实现ul功能 (代码),有一定的参考价值,有需要的朋友可以参考一下,希望对你有所帮助。

 

1

<rich-text nodes="{{nodes}}" class='nodes'></rich-text>

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

nodes: [{

     name: "ul",

     attrs: {

       style: "",        class: "nodes_ul"

     },

     children: [

       {

         name: "li",

         attrs: {

           style: "",            class: "nodes_li"

         },

         children: [{

           type: "text",

           text: '礼品卡请在有效期内登录官网进行绑定使用'

         }],

       }, {

         name: "li",

         attrs: {

           style: "",            class: "nodes_li"

         },

         children: [{

           type: "text",

           text: '流量包为当月有效,请及时使用'

         }],

       }]

   }],

posted @   香喷喷的小烤鸡  阅读(889)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示