标签:ios result name encoding ram val div coding ejs
pod ‘Alamofire‘
import Alamofire
let headers:HTTPHeaders = [ "aa":"bb" ] let parameters = [ "name":"test" ] request(url, method: .get, parameters: parameters, encoding: URLEncoding.default, headers: headers).responseJSON {(result) in if(result.result.isFailure){ print("请求出错") return } if let value = result.result.value { print(value) } else { print("请求出错") } }
标签:ios result name encoding ram val div coding ejs
原文地址:https://www.cnblogs.com/rchao/p/10715678.html