字符串拆分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>");
            }
            
        }
    }


Copyright © 2005 - 2016 flyso.cn. 飞搜 版权所有 鄂ICP备11002783号-3