【问题标题】:Alamofire error String to pass data through json requestAlamofire错误字符串通过json请求传递数据
【发布时间】:2018-09-22 04:39:54
【问题描述】:

enter image description here

在 swift 4 中给我你最好的解决方案

【问题讨论】:

标签: swift3


【解决方案1】:

你的参数肯定有问题,所以试试下面的代码:

Alamofire.request(yourUrl, method: .post, parameters: param as? [String: Any], encoding: JSONEncoding.default, headers: [:])
            .responseJSON { response in

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2023-03-20
    • 1970-01-01
    • 2023-03-27
    • 2013-01-15
    • 2018-12-31
    • 1970-01-01
    • 2021-09-10
    相关资源
    最近更新 更多