if I have a html code string:
"<a href="xxx"></a> <span>Hello </span>"
this is a string. Excuse me, how can I show their effect in vue.js?
because this is a string, how can I show it?
if I have a html code string:
"<a href="xxx"></a> <span>Hello </span>"
this is a string. Excuse me, how can I show their effect in vue.js?
because this is a string, how can I show it?
your string format is incorrect. Double quotation marks cannot be nested within double quotation marks. In the
data of single and double each other: content:' Click to enter Hello Hello '
<div v-html="content"></div>
use the v-html instruction
js
data () {return {content:' Click to enter Hello Hello '
}} `
template