ios版本 10.2.1 (14D27)
let child = this.$refs.vref;
this.observer = new IntersectionObserver(entries => {
entries.forEach(item => {
if (item.isIntersecting && !this.isShow) {
this.isShow = true;
this.disconnectObserver();
}
})
})
this.observer.observe(child._vnode.elm);
关闭后打包 可以正常找到该对象
4***@qq.com (作者)
那为啥启用摇树优化打包的是不判断下没有原生的api手机用uni.createIntersectionObserver包装打包啊
2020-04-17 11:09
DCloud_UNI_GSQ
回复 4***@qq.com: 你说的这句话很难理解,能否整理一下。
2020-04-17 11:12