cosnt text = "5555↵6666↵"
text = text.replace(/\r\n|\n|\r/g,"<br/>")
console.log(text)
"5555<br/>6666<br/>"
javascript正则替换换行符“↵“
于 2021-01-27 14:18:51 首次发布
cosnt text = "5555↵6666↵"
text = text.replace(/\r\n|\n|\r/g,"<br/>")
console.log(text)
"5555<br/>6666<br/>"