1.必须知道textarea中的换行符是 \n 2.nl2br() 函数在字符串中的每个新行 (\n) 之前插入 HTML 换行符 (<br />)。 所以nl2br()能够插入<br> 但 \n 依旧存在 打赏感谢支持与鼓励~