小程序 header

 wx.request({
            url: '*******',
            data: {
              "type":"nearest_village",
              "district": that.data.district,
            },
            header: {
'content-type': 'application/x-www-form-urlencoded' //这是是重点啊,官方非增删改用'content-type': 'application/json'是没有问题的
},

            },
            method: 'POST',
            success: function(res) {
            //do somethind
           }    
         })
原文地址:https://www.cnblogs.com/yaoling/p/13613523.html