//求得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);
浙公网安备 33010602011771号