[代码]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) {[代码][代码] [代码] [代码] [代码][代码]}[代码][代码] [代码][代码]})[代码]同新人,一起加油
求大神给一份封装wx.request的代码 自己写的感觉都不对啊求大神给一份封装wx.request的代码
2018-06-12