当前位置:网站首页>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
}
}
}
边栏推荐
- 51 communicates with the Bluetooth module, and 51 drives the Bluetooth app to light up
- 第四期SFO销毁,Starfish OS如何对SFO价值赋能?
- Malware detection method based on convolutional neural network
- What has happened from server to cloud hosting?
- 新库上线 | CnOpenData中华老字号企业名录
- 国外众测之密码找回漏洞
- 14.绘制网络模型结构
- SDNU_ACM_ICPC_2022_Summer_Practice(1~2)
- C# ?,?.,?? .....
- Deep dive kotlin synergy (XXII): flow treatment
猜你喜欢
随机推荐
12.RNN应用于手写数字识别
ReentrantLock 公平锁源码 第0篇
Basic types of 100 questions for basic grammar of Niuke
9. Introduction to convolutional neural network
Lecture 1: the entry node of the link in the linked list
Stock account opening is free of charge. Is it safe to open an account on your mobile phone
跨模态语义关联对齐检索-图像文本匹配(Image-Text Matching)
丸子官网小程序配置教程来了(附详细步骤)
Su embedded training - Day5
基于人脸识别实现课堂抬头率检测
Handwriting a simulated reentrantlock
【愚公系列】2022年7月 Go教学课程 006-自动推导类型和输入输出
ABAP ALV LVC模板
The method of server defense against DDoS, Hangzhou advanced anti DDoS IP section 103.219.39 x
【愚公系列】2022年7月 Go教学课程 006-自动推导类型和输入输出
22年秋招心得
They gathered at the 2022 ecug con just for "China's technological power"
Reentrantlock fair lock source code Chapter 0
C # generics and performance comparison
5g NR system messages







