wx.request({
url: url,
method: 'POST',
header: {
"Content-Type": "application/x-www-form-urlencoded",
"Cookie": get('Cookie')
},
data: params,
success: function (res) {
console.log(typeof(res.header['Set-Cookie']));//在手机上是string,在mac 开发工具上是array
}
})
麻烦提供能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html),我们定位下问题
wx.request({
url: url,
method: 'POST',
header: {
"Content-Type": "application/x-www-form-urlencoded",
"Cookie": get('Cookie')
},
data: params,
success: function (res) {
console.log(typeof(res.header['Set-Cookie']));//在手机上是string,在mac 开发工具上是array
}
})
麻烦按照这个格式提供代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)