摘要: 如果只有\n,可以用替换: this.rightLog = res.data.consoleLog.replace(/\n/gm, "<br/>") 可以用样式及pre标签转译 第一种添加样式 <p style="white-space: pre-wrap;" v-html="rightLog" > 阅读全文
posted @ 2020-07-01 14:20 鹿lu 阅读(2051) 评论(0) 推荐(0)