Uri.Parts
Uri.Parts(absoluteUri as text) as record
將輸入 absoluteUri
的各部分傳回為記錄,包含配置、主機、連接埠、路徑、查詢、片段、使用者名稱和密碼等值。
尋找絕對 URI "www.adventure-works.com" 的各部分。
使用方式
Uri.Parts("www.adventure-works.com")
輸出
[
Scheme = "http",
Host = "www.adventure-works.com",
Port = 80,
Path = "/",
Query = [],
Fragment = "",
UserName = "",
Password = ""
]
將百分比編碼字串解碼。
使用方式
let
UriUnescapeDataString = (data as text) as text => Uri.Parts("http://contoso?a=" & data)[Query][a]
in
UriUnescapeDataString("%2Bmoney%24")
輸出
"+money$"