asp.net中用split循环取出【,】之间的每一个值!(源码,实例!) string aaa = "10,11,12,13,14";
response.Write(aaa);
string[] bbb = aaa.Split(','); foreach (var id in bbb) { response.Write(id); }
response.Write(id);
取出的就是每一个值!
1 2 3 4 5 |
|
asp.net中用split循环取出【,】之间的每一个值!(源码,实例!) string aaa = "10,11,12,13,14";
response.Write(aaa);
string[] bbb = aaa.Split(','); foreach (var id in bbb) { response.Write(id); }
response.Write(id);
取出的就是每一个值!
1 2 3 4 5 |
|
发表回复