原始字符串. var string = "欢迎访问!\r\nhangge.com 做最好的开发者知识平台" ;. //替换所有的换行符. string = string.replace(/\r\n/g, "<br>" ).
確定! 回上一頁