小程序http 请求发不出去,大牛们请进来看下。
bu_log:function(e){
wx.request({
url: 'http://192.168.1.10:9000/RegisteruserCtr/login',
data: {
param1: 'foo',
param2: 'bar'
},
header: {
'Content-Type': 'application/json'
},
method: GET,
dataType: json,
success: function (res) { },
fail: function (res) { },
complete: function (res) { },
})
}
就是这段代码