如何轻松获得顶级域名? [英] How to get the top level domain easily?

查看:96
本文介绍了如何轻松获得顶级域名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

http://www.codeproject.com/Questions/ask.aspx ==> http://www.codeproject.com

http://t.codeproject.com/Questions/ask.aspx ==> http://www.codeproject.com

http://news.codeproject.com/Questions/ask.aspx ==> http://www.codeproject.com

http://news.codeproject.com.cn/Questions/ask.aspx ==> http://www.codeproject.com.cn


以上是示例,我想获取顶级域名.


===
使用uri类,我仅获得2〜4以上的子级别域.

http://www.codeproject.com/Questions/ask.aspx ==> http://www.codeproject.com

http://t.codeproject.com/Questions/ask.aspx ==> http://www.codeproject.com

http://news.codeproject.com/Questions/ask.aspx ==> http://www.codeproject.com

http://news.codeproject.com.cn/Questions/ask.aspx ==> http://www.codeproject.com.cn


Above is example,I want to get the top level domain.


===
use the uri class I just get the sub level domain for above 2~4 example

推荐答案

对于您给出的四个示例Uris,第一个顶级域三个是"com",最后一个是"cn",我认为这不是您真正想要的.

因此,请对uri/url各个部分的名称进行一些研究,并编辑您的问题以表明您真正想要的是什么.
For the four example Uris you have given, the top level domain for the first three is ''com'' and for the last it is ''cn'' and I do not think that this is really what you want.

Therefore please do some research into the names of the various parts of a uri/url and edit your question to indicate what you really want.


这篇关于如何轻松获得顶级域名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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