如何插入unicode字符?

发布于 7 年前作者 yaojuan4887 次浏览最后编辑 7 年前来自 issues

比如在<html>中写<h1>&#10084</h1>,会输出黑桃

<text>#10084</text>则会原样输出

1 回复
xiayao
xiayao1 楼5 年前

rich-text是可以的

<rich-text nodes=“&#10084;”></rich-text>

text应该只能这样

<text>{{text}}</text>

data: {

text:‘\u2764’

}