//每个回车后面加一个空格:var s:String = "你的那个文本";var pattern:RegExp = /\n/g;s.replace(pattern,"\n ");//注意引号里面有空格my_textArea.text=s;