【干货】干货篇

1.有空格的字符串 拆成数组

 string str = System.Text.RegularExpressions.Regex.Replace(headProducts, @"\s+", ",");
 string[] Products= str.Split(',');

猜你喜欢

转载自www.cnblogs.com/xuxml/p/10418533.html