将
text
元件的
decode
屬性設定為
true
就可以在
text
組建裡使用 html編碼後的字元和轉義字元了,如:
<text decode='true'> \n</text>
複制
這裡面
 
和
\n
表示一個空格和回車。