什么是rich-text组件?
rich-text富文本组可以支持显示html和css等复杂标签效果
rich-text 富文本组件运行效果
text组件如何使用呢?
首先,在ttml界面中添加下面代码
<view class="container">
<view class="body body-space">
<view class="page-section">
<view class="page-section-title">通过HTML String渲染</view>
<view class="page-content">
<view class="show-code">
<text>{
{htmlSnip}}</text>
</view>
<button type="primary" bindtap="renderHtml&