方法1:
string ss = "asdf,sadfa,sdfasdf,asf,";
ss = ss.Remove(ss.LastIndexOf(","), 1);
方法2(推荐):
ss= (ss+ ")").Replace(",)", "");
这个思路很好,很喜欢.
方法1:
string ss = "asdf,sadfa,sdfasdf,asf,";
ss = ss.Remove(ss.LastIndexOf(","), 1);
方法2(推荐):
ss= (ss+ ")").Replace(",)", "");
这个思路很好,很喜欢.