字符串数组中是否含有某个字符串
string[] str = {"a","b","c","d"};
string s = "e";
Response.Write(System.Array.IndexOf(str, s).ToString());
有将返回该字符串在数组中的索引。
无则返回-1;
string[] str = {"a","b","c","d"};
string s = "e";
Response.Write(System.Array.IndexOf(str, s).ToString());
有将返回该字符串在数组中的索引。
无则返回-1;