1***@qq.com
1***@qq.com
  • 发布:2024-12-16 11:18
  • 更新:2024-12-16 11:18
  • 阅读:30

uniCloud.request进行post请求问题,无法将data请求序列化成application/x-www-form-urlencoded

分类:uniCloud

如图,进行get请求时因为不带参数,所以正常使用。


当我进行post请求时即使headers加上"Content-Type": "application/x-www-form-urlencoded"后端依然无法获取到参数,最后换成uniCloud.httpclient.request方才解决,搞了我好几个小时

0 关注 分享

要回复文章请先登录注册