获取url的特定查询 [英] get specific query of url

查看:112
本文介绍了获取url的特定查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

i想得到具体的url查询



例如:

url是:www。 you.com/?query=test&lan=en&act=redirect



所以我想要行动的价值!只有



谢谢

解决方案

对于基本的URI解析,不要太惊讶,你可以使用类 System.Uri

http://msdn.microsoft.com/en-us/library/system.uri.aspx [ ^ ]。



-SA

hello
i want to get specific query of url

example :
url is : www.you.com/?query=test&lan=en&act=redirect

so i want value of act ! only

thank

解决方案

For basic URI parsing, not too surprising, you can use the class System.Uri:
http://msdn.microsoft.com/en-us/library/system.uri.aspx[^].

—SA


这篇关于获取url的特定查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆