js 正则匹配去掉字符串中的换行符

str=str.replace(/[\r\n]/g,'');
发布了550 篇原创文章 · 获赞 3 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/weixin_43294560/article/details/104900384