uniapp 09--text组件的基本使用

text组件的基本使用

组件:
uniapp 09--text组件的基本使用
uniapp 09--text组件的基本使用

uniapp 09--text组件的基本使用
代码:
uniapp 09--text组件的基本使用
结果:
uniapp 09--text组件的基本使用
代码:
uniapp 09--text组件的基本使用
结果:(在同一行)
uniapp 09--text组件的基本使用
代码:
uniapp 09--text组件的基本使用
结果:(不同行)
uniapp 09--text组件的基本使用

selectable:文本是否可选(可以点击吗)

uniapp 09--text组件的基本使用
uniapp 09--text组件的基本使用

uniapp 09--text组件的基本使用

space:显示连续空格

uniapp 09--text组件的基本使用

uniapp 09--text组件的基本使用
uniapp 09--text组件的基本使用

ensp:中文字符空格的一半大小

uniapp 09--text组件的基本使用
uniapp 09--text组件的基本使用

emsp:中文字符空格的大小

uniapp 09--text组件的基本使用
uniapp 09--text组件的基本使用

nbsp:根据字体设置的空格大小–随着字体大小改变

uniapp 09--text组件的基本使用
uniapp 09--text组件的基本使用
uniapp 09--text组件的基本使用
uniapp 09--text组件的基本使用

uniapp 09--text组件的基本使用

decode:是否解码,decode可以解析的有:&nbsp,&lt,&gt----

uniapp 09--text组件的基本使用
uniapp 09--text组件的基本使用
uniapp 09--text组件的基本使用

uniapp 09--text组件的基本使用