标签:
截取字符串:
string hander = "aaaa,bbbbbb";
int i = hander.IndexOf(","); //获取逗号的位置
string handerId = hander.Substring(0, i - 1); //获取aaaa
string handerName = hander.Substring(i + 1, hander.Length - i - 1); //获取bbbbbb
split方法(没有测试)
"2:3:4:5".split(":") //将返回["2", "3", "4", "5"]
标签:
原文地址:http://www.cnblogs.com/lovejunjuan/p/4940189.html