微信小程序请求后端数据(wx.request)
小程序请求后端数据,直接看代码
wx.request({
url: '',//请求地址路径
data:'',//请求参数
method:"post/get",//请求方式
header:{//请求头
"content-type": "application/x-www-form-urlencoded"
},
success(res){
if(res.data.success...
原创
2019-05-28 11:38:38 ·
3436 阅读 ·
0 评论