



这里注意:<template></template>里面只能写一个根标签,其他在嵌套:
html
<script >
export default {
data(){
return{
tthtml:"<a href='https://itbaizhan.com'>百战程序员</a>"
}
}
}
</script>
<template>
<div>
<p>纯文本:{{ tthtml}}</p>
<p>属性:<span v-html="tthtml"></span></p>
</div>
</template>
