wx.request请求arraybuffer类型数据在电脑端小程序获取不到返回值,在手机端可以!
https://developers.weixin.qq.com/miniprogram/dev/api/network/request/wx.request.html 请求代码如下 return prmsFn((resolve, reject) => wx.request({
url: `${config.server}${url}`,
method: 'POST',
header,
responseType,
data,
success: res => handleWhenHttpSuccessed.call(this, res, resolve, reject, url, data, 'POST'),
failed: err => handleWhenHttpFailed.call(this, err, resolve, reject, url, data)
}))
其中responseType的值是arraybuffer,在电脑版本微信小程序中,返回文件类型的接口 success的返回的res.data是没有值的,在移动端和开发工具上是好的,很奇怪,怎么解决! [图片][图片] 电脑微信版本是2.8.0.121 [图片]