用Equals比较字符串的比较 相等为true,不相等为false

xiaoxiao2026-03-18  5

  protected void Page_Load(object sender, EventArgs e)    {        //用Equals比较字符串的比较 相等为true,不相等为false        string str = "abc";        string str1 = "abC";        string str2 = "abc";        bool st = str.Equals(str1);        bool st1 = str.Equals(str2);        Response.Write(st);  //false         Response.Write(st1);  //true    }

相关资源:敏捷开发V1.0.pptx
转载请注明原文地址: https://www.6miu.com/read-5046106.html

最新回复(0)