字符串拆分Split()函数解析-ASP.NET(C#)
时间:2015/12/3 16:35:00来源:互联网 作者:flyso 点击: 878 次
protected void Page_Load(object sender, EventArgs e) { if(!IsPostBack) { string a = "5,6,9"; string []b; b=a.Split(','); for (int i = 0; i < b.Length;i++ ) { Response.Write(b[i].ToString()+"</br>"); } } } |