是不是事件的传参方法有问题……我是小白,纯属瞎猜
IOS11.3.1 post请求直接失败IOS11.3.1系统 微信版本6.6.7 wx.request post,不走成功的回调,直接失败 断点命中 一直在超时函数里面循环 最后请求直接连接超时 失败; get 请求没有问题;其他机型,系统下面方法没有问题; [代码]let httpPost = [代码][代码]function[代码][代码](url,datas,successCb,errCb){[代码][代码] [代码][代码]wx.request({[代码][代码] [代码][代码]url: url,[代码][代码] [代码][代码]method:[代码][代码]"POST"[代码][代码],[代码][代码] [代码][代码]header: {[代码][代码] [代码][代码]"content-type"[代码][代码]: [代码][代码]"application/x-www-form-urlencoded"[代码][代码] [代码][代码]},[代码][代码] [代码][代码]data: {[代码][代码] [代码][代码]json: JSON.stringify(datas)[代码][代码] [代码][代码]},[代码][代码] [代码][代码]success: [代码][代码]function[代码][代码](res) {[代码][代码] [代码][代码]if[代码] [代码](res.statusCode == 200) {[代码][代码] [代码][代码]if[代码] [代码](res.data.code == 0) {[代码][代码] [代码][代码]successCb(res.data);[代码][代码] [代码][代码]} [代码][代码]else[代码] [代码]{[代码][代码] [代码][代码]errCb(res.data);[代码][代码] [代码][代码]}[代码][代码] [代码][代码]} [代码][代码] [代码][代码]},[代码][代码] [代码][代码]fail: [代码][代码]function[代码][代码](fail) {[代码][代码] [代码] [代码] [代码][代码]},[代码][代码] [代码][代码]complete: [代码][代码]function[代码][代码](complete) {[代码][代码] [代码] [代码] [代码][代码]}[代码][代码] [代码][代码]})[代码][代码]}[代码]
2018-06-01