我想要在加载完数据后 滚动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);
}
})
},
你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)