标签:log orm str request请求 blog type 微信小程序 data for
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,否则数据提交为空。
【微信小程序】request请求POST提交数据,记得要加上header
标签:log orm str request请求 blog type 微信小程序 data for
原文地址:http://www.cnblogs.com/xuzhengzong/p/7773155.html