求大神给一份封装wx.request的代码
wx.request({
url: localhost,
data: {
id: id
},
header: {
'content-type'
:
'application/x-www-form-urlencoded; charset=UTF-8'
method:
'POST'
,
dataType:
'json'
responseType:
'text'
success:
function
(res) {
}
})
同新人,一起加油
https://www.jianshu.com/p/ad1e5b581e18