var content = $.trim($('#addContent').val()).replace(/\n/g, '<br/>');
如题,谢谢大虾啦
收起
不就是把换行符号替换为html的换行标签<br>而已,因为\n除非放在pre标签里面,要不时不会换行的
报告相同问题?