C#字符串去掉换行符,去掉空格,去掉制表符

string returnStr=  str.Replace("\n", "").Replace(" ","").Replace("\t","").Replace("\r","");
发布了121 篇原创文章 · 获赞 48 · 访问量 8万+

猜你喜欢

转载自blog.csdn.net/liuchang19950703/article/details/102929536