wx.request({
header: {
"Accept": "application/json, text/javascript, */*; q=0.01",
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
},
method:"POST",
dataType: "json",
url: `${serverUrl}/xx`,
data: { "id": [0, 1, 2] }
});
预期请求body:
id=0&id=1&=2
目前请求body:
id: 0,1,2
请问 id=0&id=1&=2 这个请求格式解决了没?我最近也遇到这个问题了,给后台传的formdata的参数,接口一直说接收不到,