企业🤖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 = "" ~~~