JS替换空格回车换行符2022-12-05 14:09:16JS替换空格回车换行符 str=str.replace(/\r/g," ") str=str.replace(/\n/g,"<br />") 或 str=str.replaceAll(" ","")上一篇:PHP中对象的本质下一篇:ruby正则匹配回车换行符