1、将数据库中的换行转换为网页中的换行
content = content.replace(/\n/g,'<br>');
2、将网页中中的换行转换为数据库的换行
content = content.replace(/<br\s*\/?>/g, "\n")