收藏
回答

console.log(typeof(res.header['Set-Cooki

框架类型 问题类型 操作系统 工具版本
小程序 Bug macOS 1.0.0


 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 个回答

登录 后发表内容