query string parameters 、 Form Data 、 Request Payload

微信小程序ajax向后台传递参数的时候总是报400错误

然后看了一下network

发现是query string parameters,但是我写的header如下

header:{

  "Content-Type":'json'

}

所以小程序总是报400

未完待续。。。。

附对照表

待完善

header:{

  "Content-type":'json'

}

 Request Payload

header:{

  "Content-type":'x-www-form-urlencoded'

}

Form Data

?name=zhansan&age=lisi

query string parameters
   
   
   

猜你喜欢

转载自www.cnblogs.com/MainActivity/p/9448111.html