小程序发起post请求回调成功没有数据

get请求时为

header:{

            "content-type":'application/json'
        },

POST 请求会将data的值放在Request Payload里面,而不是Query String Parameters里面,后端服务器如果不注意,就无法取到数据。

post请求时为:

 header:{
        "content-type":'application/x-www-form-urlencoded'
    },


作者:水牛01248
链接:http://www.jianshu.com/p/6359500b5576
來源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
posted @ 2017-12-14 18:12  HEJJY  阅读(1559)  评论(0编辑  收藏  举报