request代码在别人电脑没有问题,在我的电脑就报这个错误?不知道是什么原因
为了通过审核
var databody = "";
var token = null;
wx.request({
url: '',
data: databody,
method: 'POST',
header: { 'Content-Type': 'application/json'},
success: function (res) {
// success
var resData = res.data;
console.log(resData);
},
fail: function () {
// fail
},
complete: function () {
// complete
}
});
请求超时,看看是不是配了代理,命令行ping下请求域名