that.setDate is not a function错误如何解决呢?求大神指导
getWeather: function(){
var that = this;
wx.request({
url: 'https://free-api.heweather.com/s6/weather/now',
data:{
location:that.data.region[1],
key:'07e21eda4e604f8dbce0d1'
},
success: function(res){
that.setDate({
now:res.data.HeWeather6[0].now
});
}
})