console.log(typeof(res.header['Set-Cooki
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
}
})
1 回复