📌  相关文章
📜  javascript 在字符串中添加新行 - Javascript 代码示例

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

代码示例1
//use \n like this:
var newString = "this is on line 1 \nand this is on line 2";
console.log(newString);