全称为Uninform Resource Locator 统一资源定位器
A URL is nothing more than the address of a given unique resource on the Web. In theory, each valid URL points to a unique resource. Such resources can be an HTML page, a CSS document, an image, etc.
由几部分组成:
- 协议(http/tcp/https....)
- 域名(例如:www.baidu.com)
- 端口号(http默认为80 https为443,但是一般在协议为http/https的时候不填,其他情况则需要)
- 资源路径(/path)早期的实现是服务器的路径,现在,它主要是由没有任何物理实体的 Web 服务器抽象处理而成的。
- 查询(?wd=牛客网&rsv_spt=1&rsv_iqid=0xe4a9128d000264d4&issp=1&f=8&rsv_bp=1&rsv_idx=2&ie=utf-8&tn=baiduhome_pg&rsv_dl=tb&rsv_sug3=12&rsv_enter=1&rsv_sug1=7&rsv_sug7=100&rsv_sug2=0&rsv_btype=i&inputT=1809&rsv_sug4=16124)例如在百度搜索牛客网