javascript获取到textarea文本框中的回车换行符

javascript获取到textarea文本框中的回车换行符
原文地址:https://www.cnblogs.com/xrwang/p/LineBreakInJavascript.html