请试一下下面这个例子
wx.request({
url: ‘https://login.weixin.qq.com/jslogin’, //仅为示例,并非真实的接口地址
data: {
‘appid’: ‘wxeb7ec651dd0aefa9’,
‘fun’: ‘new’,
‘lang’: ‘zh_CN’,
‘_’: new Date().getTime(),
},
header: {
‘content-type’: ‘application/x-www-form-urlencoded’
},
method: ‘POST’,
success: function(res) {
console.log(res)
}
})
正常情况下应该返回:window.QRLogin.code = 200; window.QRLogin.uuid = “YdCh7EFtZg==”;
可是返回结果里啥也没有