swift
清醒思考
有问题可以私信我.
展开
-
swift读取bundle文件
if let filepath = Bundle.main.path(forResource: "test", ofType: "html") { do { } catch { }}原创 2022-07-19 16:25:50 · 1360 阅读 · 0 评论 -
swift获取url参数
# swift获取url参数```swiftpublic extension URL { var urlParameters: [String: String]? { guard let components = URLComponents(url: self, resolvingAgainstBaseURL: true), let queryItems = components.queryItems else { return nil } ret原创 2022-07-07 21:59:06 · 1665 阅读 · 0 评论