resultStr = resultStr.replace(/\n/gi , "<br />"); //可以全部替换resultStr = resultStr.replace(/\n , "<br />");//只替换第一个
Powered by: 博客园 Copyright © 2024 股墓山庄庄主 Powered by .NET 9.0 on Kubernetes