1,method 是  get  方式的时候,会将数据转换成 query string

  method 为 post 时,header为{"Content-Type": "application/x-www-form-urlencoded"}会将数据转换成 query string

  method 为 post 时,header为{"Content-Type":"application/json"} 的数据,会对数据进行 JSON 序列化

 

相关文章:

  • 2022-01-01
  • 2021-04-06
  • 2022-12-23
  • 2021-08-14
  • 2022-12-23
猜你喜欢
  • 2021-10-20
  • 2021-10-16
  • 2022-12-23
相关资源
相似解决方案