开发小程序中遇到的问题及解决方法

自定义组件:console.log(this.data),里面有 this.data.list 的值,不是空数组;直接打印console.log(this.data.list),是空数组

暂时解决方案:使用 setTimeout 延时一会

在自定义组件或包含自定义组件的页面中,使用wx.createIntersectionObserver报错:Node \".data_report_1469021265\" is not found. Intersection observer will not trigger

解决方法:在自定义组件或包含自定义组件的页面中,应使用 this.createIntersectionObserver([options]) 来代替。

posted on 2019-12-16 17:28  cag2050  阅读(1589)  评论(0编辑  收藏  举报

导航