C#判断包含字符多少个


            cpxs.Text = "sfsdfsdfsd,dasdasd,dasdad,tttt,dsdada";


            var 检测数据 = cpxs.Text;

            int num = Regex.Matches(检测数据, ",").Count;


            Response.Write("<script>alert('发现填写了"+num+"')</script>");

webform
桂ICP备16004754号