PHP前端开发

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

百变鹏仔 1个月前 (03-12) #前端问答
文章标签 来实现

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

 <rich-text></rich-text>
 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: '流量包为当月有效,请及时使用'          }],        }]    }],