1.有空格的字符串 拆成数组
string str = System.Text.RegularExpressions.Regex.Replace(headProducts, @"\s+", ","); string[] Products= str.Split(',');
1.有空格的字符串 拆成数组
string str = System.Text.RegularExpressions.Regex.Replace(headProducts, @"\s+", ","); string[] Products= str.Split(',');