wx.request({
url: 'url',
data: {
userId:userId
},
method: 'POST',
header: {
'content-type': 'application/x-www-form-urlencoded'
}
success: function(res){
}
})
注意需要加上header头,否则后台获取不到数据