if (cbb_HeadType.Text.Split('%').Count()==1) string str = cbb_HeadType.Text.Replace("%", ""); 转载于:https://www.cnblogs.com/swtool/p/3840201.html