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
}
用Equals比较字符串的比较 相等为true,不相等为false
最新推荐文章于 2021-08-29 11:16:56 发布