标签:<script>
Angular将字符串输出为HTML字符串
vue:
<div v-html=""newData.Contents"></div>
anuglar:
<div [innerHTML]="newData.Contents">
</div>
Angular属性绑定参考:
https://angular.cn/guide/template-syntax#属性绑定--属性名-
本文出自 “12897581” 博客,请务必保留此出处http://12907581.blog.51cto.com/12897581/1975962
标签:<script>
原文地址:http://12907581.blog.51cto.com/12897581/1975962