我有一个字符串
var s:String = "This is a line \n This is another line.";
this.txtHolder.text = s; //.text has \n, not a new line
我想把它放入一个文本区域,但新行字符被忽略。我如何确保文本在分配时在我想要的位置中断?
最佳答案
在 flex 上,同时编码 \n
在 mxml
上运行良好或任何 xml
定义一条线只需使用 
线实体。
我的意思是:
lazy
fox
给我们
lazy<br />
fox
关于apache-flex - 如何在flex textarea中使文本换行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/314858/