我想要在加载完数据后 滚动scroll-view的位置,但是不知为什么滚动不成功,最后我只能手动加个定时器才行!!!!!!!
// 页面加载
onLoad(options) {
wx.getStorage({
key: 'dataStorage',
success: res => notes = res.data,
fail: err => notes = {},
complete: () => {
this.setData({
data: makeCalendar(LocalDate.year, notes)
})
setTimeout(() => {
this.setData({
showId: `m${LocalDate.month}`
})
}, 100);
}
})
},