ASP.NET C# 去掉字符串中间空格方法
string strName = "大 张 伟";
string str = Regex.Replace(strName, @"\s", "");
Response.Write("输出内容:" + str);
string strName = "大 张 伟";
string str = Regex.Replace(strName, @"\s", "");
Response.Write("输出内容:" + str);