红叶都枫了 @163
摘要: 后端传来的字符串有换行符: 直接输出的效果: 解决方法demo: <p class="" v-html="text"></p> js: let str=res.rows[0].text.replace(/\n/g,"<br/>") this.text = str 效果: 阅读全文
posted @ 2020-04-20 19:41 红叶都枫了163 阅读(383) 评论(0) 推荐(0) 编辑