//求得strStar 和 strEnd 出现的位置: 
string strStar = "<mailNo>";
string strEnd = "</mailNo>";
int IndexofA = result.IndexOf(strStar);
int IndexofB = result.IndexOf(strEnd);
//截取
strReturn = result.Substring(IndexofA + strStar.Length, IndexofB - IndexofA - strEnd.Length + 1);

 

posted on 2017-04-12 16:11  清风暮雨  阅读(576)  评论(0)    收藏  举报