title: Taro.createIntersectionObserver(Object component, Object options)

sidebar_label: createIntersectionObserver

使用方式同 wx.createIntersectionObserver

示例代码:

  1. import Taro from '@tarojs/taro'
  2. const observer = Taro.createIntersectionObserver(this, { thresholds: [0], observeAll: true })

API支持度

API 微信小程序 H5 ReactNative
Taro.createIntersectionObserver ✔️