如何使用正则表达式(或任何其他方式)删除转义:
const str = 'some \\n text \\n 1';
console.log(str);
也就是说,而不是
some \n text \n 1
输出
some
text
1
如何使用正则表达式(或任何其他方式)删除转义:
const str = 'some \\n text \\n 1';
console.log(str);
也就是说,而不是
some \n text \n 1
输出
some
text
1
所以?