wx.request({
url: url+'/ttxs/upgrade/getApkVersion.do? apkType=2&versionCode=230',
data: {},
method: 'GET', // OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT
// header: {}, // 设置请求的 header
success: function(res){
// success
//res 为object对象实例
console.log(res.data)
},
fail: function() {
// fail
},
complete: function() {
// complete
}
})
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17