javascript的字符串中的“回车换行”用什么表示

2025-02-14 07:10:24
推荐回答(1个)
回答1:

被记录的回车符号是 \r

"回车符号\r 哈哈哈"

字符串换行的是 \n

console.log("第一行\n第二行")