在 javascript 中显示未 encode 字符的原始状态

var a = ‘aaaaa\r\nbbbbbb’;
console.log(JSON.stringify(a));
console.log(a);

From: https://segmentfault.com/q/1010000011005586

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *