Alamofire 使用的是 4.7.2
Swift 4
Alamofire.request(strUrl, method: httpMethod, parameters: parameters, encoding: JSONEncoding.default , headers: nil)
.validate().responseJSON { response in
print("response===",response)
}
如果要是 出現(xiàn) "Extra argument 'method' in call"
有可能是 encoding 的錯(cuò)誤或者是 strURL 的錯(cuò)誤。反正不一定是 method 參數(shù)的錯(cuò)誤