JS 中如何将 替换成 n空格替换成n字符串还是回车?var a = 'xxxx oooo'如果是前者a.replace(sg, '\n')如果是后者a.replace(sg, 'n'2023-05-01JavaScript1450