Swift 笔记

1.URLDecode,URLEncode

//URLEncode
str.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed)
//URLDecode
str.removingPercentEncoding

你可能感兴趣的:(Swift 笔记)