为什么不显示温度数据之类?

发布于 9 年前作者 yang7610102 次浏览最后编辑 9 年前来自 ask

2 回复
emo
emo1 楼6 年前

数据结构呢

aye
aye2 楼6 年前

这明显是网络请求返回的res与你写的数据格式有出入的问题噢

你用console.log打印一下:

wx.request({

success(res) {

console.log(res)

}

})

然后对着数据调试,应该就没问题了