wx.request(OBJECT)请求头

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

猜你喜欢

转载自blog.csdn.net/DayDreamWMM/article/details/75007633
今日推荐