点击button重新请求数据如何实现?
改变URl重新获取数据如何实现?
wx.request({
url: ‘’,
data: {},
method: ‘GET’,
header: {
‘content-type’: ‘application/json’
}, // 设置请求的 header
success: function(res){
that.setData({
servicePrice:res.data.result
})
},
fail: function() {
},
complete: function() {
}
})
是否通过this.setdata?
