Dictionary<string, object> paramsMap = new Dictionary<string, object>(); paramsMap["1"] = "值"; paramsMap["2"] = "Stephen 公众号"; paramsMap["3"] = "StephenJava 微信号"; //Contains来判断 if (routeParams.Contains("1")){ Console.WriteLine("paramsMap 包含key:1 ") }