类库说明文档
![]() | JHStringReplaceNewline Method (String, String) |
去除字符串中的换行符
Namespace: DCSoft.Utility.Text
Assembly: DCSoft.Utility (in DCSoft.Utility.dll) Version: 0.0.0.0 (1.0.0.0)

C#
public static string ReplaceNewline( string source, string target )
Parameters
- source
- Type: SystemString
要调整的字符串 - target
- Type: SystemString
换行符需要替换的新字符;如果需要替换后前台JS使用,则为 \\r\\n
Return Value
Type: String返回已去除换行符的字符串
