有时候从后台传来的值有html代码片段,我们需要用html给展示,就用到了v-html
用法:
<el-table-column label="规则说明" align="center">
<div slot-scope="scope" v-html="scope.row.ruledescription">
{{scope.row.ruledescription}}
</div>
</el-table-column>

这样就可以了
有时候从后台传来的值有html代码片段,我们需要用html给展示,就用到了v-html
用法:
<el-table-column label="规则说明" align="center">
<div slot-scope="scope" v-html="scope.row.ruledescription">
{{scope.row.ruledescription}}
</div>
</el-table-column>

这样就可以了
5650
1240
2395

被折叠的 条评论
为什么被折叠?