request 400报错
发布于 5 年前 作者 xgong 3651 次浏览 来自 问答

wx.request({

url: ‘http://’ + address + ‘order/getOrder.json’,

data: orderList,

method: ‘post’,

header: {

“Content-Type”: “application/x-www-form-urlencoded”

},

success:function(res){

console.log(res);

}

})

4 回复

我传的是一个对象

通常400都是参数格式不对,你和后台接口对比看看对象的包装是否正确,是否需要JSON.stringify转字符串。

参数不对?

回到顶部