1.傳統(tǒng)形式的URL
-schema: 協(xié)議,例如http , https, ftp等
-host: 域名或者ip地址
-port: 端口,http默認(rèn)端口80,可以省略
-path: 路徑,例如/abc /a/b/c
-query: 查詢參數(shù),例如 token=sdfs2223fds2&name=sdffaf
-fragment: 錨點(哈希Hash),用于定位頁面的某個位置。
- 符合規(guī)則的URL
1.傳統(tǒng)形式的URL
-schema: 協(xié)議,例如http , https, ftp等
-host: 域名或者ip地址
-port: 端口,http默認(rèn)端口80,可以省略
-path: 路徑,例如/abc /a/b/c
-query: 查詢參數(shù),例如 token=sdfs2223fds2&name=sdffaf
-fragment: 錨點(哈希Hash),用于定位頁面的某個位置。