html52.com
我爱小程序-开发者交流社区

request请求header设置问题

问题模块 框架类型 API/组件名称 终端类型 操作系统 微信版本 基础库版本
API和组件 小程序 wx.request() 客户端 iOS 6.6.5 1.9.1

lication/x-www-form-urlencoded' },这样写时wxInfo传递的值为[object object],是为什么?method: "POST"

method: "POST"

header: { 'content-type': 'application/x-www-form-urlencoded' },

这样写时wxInfo传递的值为[object object],是为什么?

网友回复

阿拉丁神灯:

好的,谢谢你

这都申请了:

可以

阿拉丁神灯:

数组也可以这样用吗

阿拉丁神灯:

阿拉丁神灯:可以了,谢谢你

可以了,谢谢你

这都申请了:

用JSON.stringify处理一下wxInfo试试

阿拉丁神灯:

阿拉丁神灯:wxInfo是表单数据

wxInfo是表单数据

这都申请了:

贴你的js代码

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

真正的个人免签约支付接口

云免签H5支付