首页 > 技术文章 > vue中把字符串带有html标签转为html渲染页面
yanshaoxiong 2020-02-11 18:57 原文
在标签中用v-html绑定数据,就能把这个字符串里的标签转为html<p v-html="p.title">{{p.title}}</p>