wx.request({
url: ‘test.php’, //仅为示例,并非真实的接口地址
data: {
x: ” ,
y: ”
},
header: {
“Content-Type”: “json”
},
success: function (res) {
console.log(res.data)
}
})
wx.request(OBJECT)请求头
最新推荐文章于 2023-08-07 10:05:24 发布
wx.request({
url: ‘test.php’, //仅为示例,并非真实的接口地址
data: {
x: ” ,
y: ”
},
header: {
“Content-Type”: “json”
},
success: function (res) {
console.log(res.data)
}
})