欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

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

程序员文章站 2022-04-09 14:05:01
在进行异步请求之前先去小程序后台配置好服务器域名。 get请求:header: { 'content-type':'json'}就可以。 post请求:header: { 'content-type':'application/x-www-form-urlencoded'}, ......

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

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

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