JS替换回车换行符

replace(/ /ig, '<br>').replace(/ /ig, '<br>')

原文地址:https://www.cnblogs.com/zhang9418hn/p/3670037.html