日期:2014-05-16  浏览次数:20408 次

JS 去除字符串的换行符

var str = $('#textarea').val();

str??=?str?.replace(/\\n/g,'');