wx.request({ url: '*******', data: { "type":"nearest_village", "district": that.data.district, }, header: { "Content-Type": "application/x-www-form-urlencoded" }, method: 'POST', success: function(res) { //do somethind } })
一定要带上header,否则数据提交为空。
wx.request({ url: '*******', data: { "type":"nearest_village", "district": that.data.district, }, header: { "Content-Type": "application/x-www-form-urlencoded" }, method: 'POST', success: function(res) { //do somethind } })
一定要带上header,否则数据提交为空。