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

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

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

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

 

 

 
 
posted on 2018-05-08 15:16  ZMONE  阅读(1166)  评论(1编辑  收藏  举报