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='nodes'></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: '流量包为当月有效,请及时使用' }], }] }],
Related recommendations:
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!