方法一:
string s = "12,13,14,";
s=s.TrimEnd(',');//最后有“,”就会去掉了
方法二:
string st1;
st1="12,13,14,";
st1=st1.Substring(0,st1.Length-1);
方法一:
string s = "12,13,14,";
s=s.TrimEnd(',');//最后有“,”就会去掉了
方法二:
string st1;
st1="12,13,14,";
st1=st1.Substring(0,st1.Length-1);