wx.request(OBJECT)请求头

来源:互联网 发布:如何用淘宝内部券赚钱 编辑:程序博客网 时间:2024/06/05 21:05

wx.request({
url: ‘test.php’, //仅为示例,并非真实的接口地址
data: {
x: ” ,
y: ”
},
header: {
“Content-Type”: “json”
},
success: function (res) {
console.log(res.data)
}
})

原创粉丝点击