、用单个字符来分隔:
C#中split分隔字符串的应用-LMLPHP
C#中split分隔字符串的应用-LMLPHPstring str="aaajbbbjccc";
C#中split分隔字符串的应用-LMLPHP
C#中split分隔字符串的应用-LMLPHPstring[] sArray=str.Split('j');
C#中split分隔字符串的应用-LMLPHP
C#中split分隔字符串的应用-LMLPHPforeach(string i in sArray) Response.Write(i.ToString() + "<br>");
C#中split分隔字符串的应用-LMLPHP
C#中split分隔字符串的应用-LMLPHP输出结果:
C#中split分隔字符串的应用-LMLPHPaaa
C#中split分隔字符串的应用-LMLPHPbbb
C#中split分隔字符串的应用-LMLPHPccc

05-11 13:19