多个swiper出现events事件警告?

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

VM518 WAService.js:2 [Event] 21 listeners of event onBeforeUnloadPage_30 have been added, possibly causing memory leak

基础库:2.12.0以上

复现片段:https://developers.weixin.qq.com/s/YeYnJcmH79pF

1 回复
tao43
tao431 楼8 个月前

一个页面有太多 scroll-view 就会检测到 listener 太多了,符合预期