解决方法是在存入数据库时对数据做处理,把换行换成其他字符。代码如下:
remark = remark.replace(/\n/g,"").replace(/\r/g,"")
Copyright @ 2024 yjanb11 Powered by .NET 8.0 on Kubernetes Powered by: .Text and ASP.NET Theme by: .NET Monster