【开发环境】
前端开发工具:微信开发者工具,调试基础库,2.10.4
后端:VS 2017(开发工具) 、C#(开发语言) 、.NET Framework 4.6.1(目标框架)
1、小程序发起请求post,参数如下
Request Payload
Request Headers,content-type:application/json
从以上信息在后端就无法获取到了
2、原因:post的Request Header的content-type没有设置对
解决方法:header: {'content-type': 'application/x-www-form-urlencoded'},