C#字符串长度判断 string aaa = "你好123"; Label1.Text = aaa.Length.ToString(); //结果5 Label2.Text = System.Text.Encoding.Default.GetBytes(aaa).Length.ToString(); Read More
posted @ 2020-10-13 16:45 gygtech Views(82) Comments(0) Diggs(0) Edit