使用静态ParseQueryString
方法System.Web.HttpUtility
类返回的NameValueCollection
.
Uri myUri = new Uri("http://www.example.com?param1=good¶m2=bad");
string param1 = HttpUtility.ParseQueryString(myUri.Query).Get("param1");
2022-09-06 21:30:31
使用静态ParseQueryString
方法System.Web.HttpUtility
类返回的NameValueCollection
.
Uri myUri = new Uri("http://www.example.com?param1=good¶m2=bad");
string param1 = HttpUtility.ParseQueryString(myUri.Query).Get("param1");