Alamofire请求数据的大题格式

来源:互联网 发布:ipv6 端口格式 编辑:程序博客网 时间:2024/05/12 08:20

        Alamofire .request(.GET,url,parameters: params) .responseJSON() {  responsein

            if response.result.isSuccess{

                let json = JSON(response.result.value!)

                callback(nil, json)

                

            }

            else{

                print("数据加载失败")

                

            }

            

        }

0 0
原创粉丝点击