小程序的get和post需要注意的地方

在进行异步请求之前先去小程序后台配置好服务器域名。

get请求:header: { 'content-type':'json'}就可以。

post请求:header: { 'content-type':'application/x-www-form-urlencoded'},

 
 
 

猜你喜欢

转载自www.cnblogs.com/ZM-ONE/p/9008371.html