在进行异步请求之前先去小程序后台配置好服务器域名。
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'},
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。