swift url 中的 %20 移除

2021-03-01  本文已影响0人  张科_Zack

使用 字符串的 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 }

上一篇下一篇

猜你喜欢

热点阅读