$(".textareashow").each(function(i){
var content = $.trim($(this).text());
var newcontent = content.replace(/\n/g,'<br/>');
$(this).html(newcontent);
});
转载于:https://www.cnblogs.com/leonkobe/p/4255738.html
$(".textareashow").each(function(i){
var content = $.trim($(this).text());
var newcontent = content.replace(/\n/g,'<br/>');
$(this).html(newcontent);
});
转载于:https://www.cnblogs.com/leonkobe/p/4255738.html