string a = "1-2-3-4-5-6-7-8-9";
string[] b = a.Split(new Char[] { '-' });
for (int i = 0; i < b.Length; i++)
{
Response.Write("<p>"+b[i]+"</p>");
}
string a = "1-2-3-4-5-6-7-8-9";
string[] b = a.Split(new Char[] { '-' });
for (int i = 0; i < b.Length; i++)
{
Response.Write("<p>"+b[i]+"</p>");
}
转载于:https://www.cnblogs.com/njy888888/p/7761792.html