📌  相关文章
📜  如何在 html 中读取断线 \n - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:35.512000             🧑  作者: Mango

代码示例3
function xx (string){
  return string.replace(/(\r\n|\n|\r)/gm, "
"); } console.log('Here's some text.\n It has some line breaks that will be removed \r using Javascript.\r\n');