JHString.ReplaceNewline Method (String, String)

DCSoft.DBUtilityGeneric

JHStringReplaceNewline Method (String, String)
去除字符串中的换行符

Namespace: DCSoft.Utility.Text
Assembly: DCSoft.Utility (in DCSoft.Utility.dll) Version: 0.0.0.0 (1.0.0.0)
Syntax
C#
public static string ReplaceNewline(
	string source,
	string target
)

Parameters

source
Type: SystemString
要调整的字符串
target
Type: SystemString
换行符需要替换的新字符;如果需要替换后前台JS使用,则为 \\r\\n

Return Value

Type: String
返回已去除换行符的字符串
See Also