wx.createIntersectionObserver
-
请问这个小程序的API对应Taro哪个API,我在官网找半天找不到这个API.心累。
this._observer = wx.createIntersectionObserver(this)
this._observer
.relativeTo('.scroll-view')
.observe('.ball', (res) => {
console.log(res);
this.setData({
appear: res.intersectionRatio > 0
})
})
我想实现小程序这个效果,我以为小程序官网的API Taro应该也有一一对应的API才对,结果发现找不到。
-
知道了,在2.1.5版本的官网是没有这个API的