.net 分割字符串时间:2023-03-09 15:36:38 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>"); }