看板 java 關於我們 聯絡資訊
我在 mac OS X 上,JTextArea 內的文字斷行是 \n 沒錯。 但在 windows 上,還是一樣 \n 嗎?或是 \r\n 才對? 我的問題是,從 JTextArea.getText() 來的斷行碼, 在不同平台上是一致的嗎? 非常感謝。 -- http://apansharing.blogspot.com/ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 59.126.46.88
PsMonkey:亂入:一定有 \n,其他 trim() 掉就好啦 [逃] 06/28 02:01
jtmh:根據 Java Tutorial 和 API 文件中的說明,在記憶體中的確是 06/28 07:12
jtmh:以 \n 斷行:http://tinyurl.com/6o8n2 06/28 07:14
jtmh: http://tinyurl.com/lm9ldw 06/28 07:15
andrew43:非常感謝! 06/29 01:59