0
点赞
收藏
分享

微信扫一扫

小程序post请求数据错误(没有添加header)


 小程序post请求数据错误(没有添加header)

header: {
'content-type': 'application/x-www-form-urlencoded;charset=utf-8',
},

如果没有添加urlencode的话,一些特别的字符会出错。

加上这行,会对所有变量进行urlencode

在服务端端也要进行urldecode

举报

相关推荐

0 条评论