小程序渲染html的两种方法-CSDN博客

网站介绍:文章浏览阅读4.2k次。一、使用文档自带的原生API rich-text, nodes属性直接绑定需要渲染的html内容即可,文档参见这里:https://developers.weixin.qq.com/miniprogram/dev/component/rich-text.html二、使用WxParseData插件,github地址:https://github.com/icindy/wxParse 使用原生..._小程序渲染html