ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# UrlParts `UrlParts(Url) {Dictionary}` `Url`-`{String}` 获取给定网址的相关部分。 返回`Protocol`,`Host`,`Port`,`Path`,`Querystring`和`Hash`. ~~~vb WebHelpers.UrlParts "https://www.google.com/a/b/c.html?a=1&b=2#hash" '// -> Protocol = https '// Host = www.google.com '// Port = 443 '// Path = /a/b/c.html '// Querystring = a=1&b=2 '// Hash = hash WebHelpers.UrlParts "localhost:3000/a/b/c" '// -> Protocol = "" '// Host = localhost '// Port = 3000 '// Path = /a/b/c '// Querystring = "" '// Hash = "" ~~~