使用:Contains 比 IndexOf 的性能提高很多。 因为 Contains 是判断某个字符串是否在另外一个字符串中,而IndexOf需要返回下标值。 转载于:https://www.cnblogs.com/easeyeah/p/8358972.html