baozhengrui

导航

多个\n\n 转换为一个\n

art1 = res.replace(/\n{2}/g, '\n');
this.$set(this, 'report', rep.replaceAll(/\n/g, '<br>'))

posted on 2024-08-12 15:20  芮艺  阅读(25)  评论(0)    收藏  举报