createIntersectionObserver 相关

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

在页面onload时,利用wx.createIntersectionObserver创建后,然后在onHide时,再调用一遍wx.createIntersectionObserver时,会跑错:Relative nodes cannot be added after “observe” call in IntersectionObserve

希望得到解答,是哪里的问题

微信版本和基础库版本,随便填的。是在模拟器上的错误,真机还没调试

1 回复
guiying52
guiying521 楼6 年前

onHide的时候,都销毁了。。还会触发交互监听吗?