当前位置:网站首页>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
}
}
}
边栏推荐
- Course of causality, taught by Jonas Peters, University of Copenhagen
- Implementation of adjacency table of SQLite database storage directory structure 2-construction of directory tree
- AI遮天传 ML-初识决策树
- 韦东山第三期课程内容概要
- SDNU_ ACM_ ICPC_ 2022_ Summer_ Practice(1~2)
- Su embedded training - Day6
- 华泰证券官方网站开户安全吗?
- 赞!idea 如何单窗口打开多个项目?
- Serial port receives a packet of data
- 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
猜你喜欢
随机推荐
What is load balancing? How does DNS achieve load balancing?
国外众测之密码找回漏洞
51 communicates with the Bluetooth module, and 51 drives the Bluetooth app to light up
ReentrantLock 公平锁源码 第0篇
ThinkPHP kernel work order system source code commercial open source version multi user + multi customer service + SMS + email notification
Basic types of 100 questions for basic grammar of Niuke
How does starfish OS enable the value of SFO in the fourth phase of SFO destruction?
FOFA-攻防挑战记录
Which securities company has a low, safe and reliable account opening commission
[go record] start go language from scratch -- make an oscilloscope with go language (I) go language foundation
QT adds resource files, adds icons for qaction, establishes signal slot functions, and implements
ABAP ALV LVC模板
手写一个模拟的ReentrantLock
Service mesh introduction, istio overview
Get started quickly using the local testing tool postman
130. 被围绕的区域
New library online | information data of Chinese journalists
【obs】官方是配置USE_GPU_PRIORITY 效果为TRUE的
Invalid V-for traversal element style
Hotel







![[note] common combined filter circuit](/img/2f/a8c2ef0d76dd7a45b50a64a928a9c8.png)
