Uniapp 显示HTML文本或者内嵌网页
参考代码<web-view v-if="noticeList.noticeUrl" :src="noticeList.noticeUrl"></web-view><textv-else class="html-text-box" v-html="noticeList.noticeContent" ></text>web-view 内嵌网页v-html
·
参考代码
<web-view v-if="noticeList.noticeUrl" :src="noticeList.noticeUrl"></web-view>
<text v-else class="html-text-box" v-html="noticeList.noticeContent" ></text>
web-view 内嵌网页
v-html显示html文本
结果展示:
更多推荐
已为社区贡献6条内容
所有评论(0)