当前位置:网站首页>Swift get URL parameters
Swift get URL parameters
2022-07-08 01:00:00 【Sober thinking】
swift obtain url Parameters
public extension URL {
var urlParameters: [String: String]? {
guard let components = URLComponents(url: self, resolvingAgainstBaseURL: true),
let queryItems = components.queryItems else {
return nil }
return queryItems.reduce(into: [String: String]()) {
(result, item) in
result[item.name] = item.value
}
}
}
边栏推荐
- 大二级分类产品页权重低,不收录怎么办?
- 国外众测之密码找回漏洞
- My best game based on wechat applet development
- 赞!idea 如何单窗口打开多个项目?
- Implementation of adjacency table of SQLite database storage directory structure 2-construction of directory tree
- CVE-2022-28346:Django SQL注入漏洞
- 【深度学习】AI一键换天
- Fofa attack and defense challenge record
- Reentrantlock fair lock source code Chapter 0
- ABAP ALV LVC template
猜你喜欢
Reentrantlock fair lock source code Chapter 0
[go record] start go language from scratch -- make an oscilloscope with go language (I) go language foundation
Prediction of the victory or defeat of the League of heroes -- simple KFC Colonel
利用GPU训练网络模型
New library launched | cnopendata China Time-honored enterprise directory
国内首次,3位清华姚班本科生斩获STOC最佳学生论文奖
What has happened from server to cloud hosting?
Password recovery vulnerability of foreign public testing
SDNU_ ACM_ ICPC_ 2022_ Summer_ Practice(1~2)
接口测试要测试什么?
随机推荐
大二级分类产品页权重低,不收录怎么办?
130. 被围绕的区域
Application practice | the efficiency of the data warehouse system has been comprehensively improved! Data warehouse construction based on Apache Doris in Tongcheng digital Department
Cancel the down arrow of the default style of select and set the default word of select
NTT template for Tourism
【obs】Impossible to find entrance point CreateDirect3D11DeviceFromDXGIDevice
German prime minister says Ukraine will not receive "NATO style" security guarantee
y59.第三章 Kubernetes从入门到精通 -- 持续集成与部署(三二)
Cascade-LSTM: A Tree-Structured Neural Classifier for Detecting Misinformation Cascades(KDD20)
CVE-2022-28346:Django SQL注入漏洞
新库上线 | 中国记者信息数据
英雄联盟胜负预测--简易肯德基上校
Interface test advanced interface script use - apipost (pre / post execution script)
Course of causality, taught by Jonas Peters, University of Copenhagen
2022-07-07: the original array is a monotonic array with numbers greater than 0 and less than or equal to K. there may be equal numbers in it, and the overall trend is increasing. However, the number
Introduction to ML regression analysis of AI zhetianchuan
Jemter distributed
The weight of the product page of the second level classification is low. What if it is not included?
接口测试要测试什么?
Langchao Yunxi distributed database tracing (II) -- source code analysis