wx.request POST代码示例
2017-11-11 本文已影响12人
9b559869875b
wx.request({
url: "http://your-url”,
header: {
'content-type': 'application/json'
},
method:'POST',
data: {
keyword: '关键字'
},
success: function (res) {
console.log(res.data);
}
});
wx.request({
url: "http://your-url”,
header: {
'content-type': 'application/json'
},
method:'POST',
data: {
keyword: '关键字'
},
success: function (res) {
console.log(res.data);
}
});