微信小程序前端向SpringBoot SSH后台Post String类型数据出错
分享一个前几天卡了我很久的问题
解决办法:
1.传输的数据用data:JSON.stringify(str),
微信小程序默认header为 header: { ‘Content-Type’: ‘application/json’ }
改成header: { ‘Content-Type’: ‘application/x-www-form-urlencoded;charset:utf-8’}
2.虽...
原创
2019-04-12 10:32:36 ·
503 阅读 ·
0 评论