获取到json中的数据,通过“\n”转义,此时我们需要通过正则表达式来替换一下 replace(/↵/g, ‘\n’); 在页面中可以这样 我长得好看 \n 我长得也好看 出来的结果就是 我长得好看 我长得也好看