在进行异步请求之前先去小程序后台配置好服务器域名。
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'},
转载于:https://www.cnblogs.com/dianzan/p/11386576.html