1.rich-text
小程序自带的富文本解析
<view class="container">
<rich-text nodes="{{info}}"></rich-text>
</view>
2.微信自带的打开文件
wx.downloadFile({
// 示例 url,并非真实存在
url: 'https://vehicle-library.oss-cn-beijing.aliyuncs.com/',
success: function (res) {
const filePath = res.tempFilePath
wx.openDocument({
filePath: filePath,
success: function (res) {
console.log('打开文档成功')
}
})
}
})