美文网首页
swift url 中的 %20 移除

swift url 中的 %20 移除

作者: 张科_Zack | 来源:发表于2021-03-01 11:50 被阅读0次

使用 字符串的 removingPercentEncoding 属性即可
|

Summary

A new string made from the string by replacing all percent encoded sequences with the matching UTF-8 characters.

Declaration
var removingPercentEncoding: String? { get }

相关文章

网友评论

      本文标题:swift url 中的 %20 移除

      本文链接:https://www.haomeiwen.com/subject/qjtafltx.html