String.Trim()
将从字符串的开头和结尾修剪所有 white-spaces:" A String ".Trim() -> "A String"
String.TrimStart()将修剪字符串开头的所有空格:" A String ".TrimStart() -> "A String "
String.TrimEnd()将修剪字符串末尾的所有空格:" A String ".TrimEnd() -> " A String"
String.Trim()
将从字符串的开头和结尾修剪所有 white-spaces:" A String ".Trim() -> "A String"
String.TrimStart()将修剪字符串开头的所有空格:" A String ".TrimStart() -> "A String "
String.TrimEnd()将修剪字符串末尾的所有空格:" A String ".TrimEnd() -> " A String"