Skip to content

Commit

Permalink
docs: Taro.createIntersectionObserver  (#4467)
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenOo authored and luckyadam committed Sep 19, 2019
1 parent 5e79fde commit 54b3daa
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
24 changes: 24 additions & 0 deletions docs/apis/interface/wxml/createIntersectionObserver.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
title: Taro.createIntersectionObserver(Object component, Object options)
sidebar_label: createIntersectionObserver
---


使用方式同 [`wx.createIntersectionObserver`](https://developers.weixin.qq.com/miniprogram/dev/api/wxml/wx.createIntersectionObserver.html)



**示例代码:**

```jsx
import Taro from '@tarojs/taro'

const observer = Taro.createIntersectionObserver(this, { thresholds: [0], observeAll: true })
```

## API支持度

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

Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
title: Taro.createIntersectionObserver(Object component, Object options)
sidebar_label: createIntersectionObserver
id: version-1.3.14-createIntersectionObserver
original_id: createIntersectionObserver
---


使用方式同 [`wx.createIntersectionObserver`](https://developers.weixin.qq.com/miniprogram/dev/api/wxml/wx.createIntersectionObserver.html)


**示例代码:**

```jsx
import Taro from '@tarojs/taro'

const observer = Taro.createIntersectionObserver(this, { thresholds: [0], observeAll: true })
```

## API支持度

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

0 comments on commit 54b3daa

Please sign in to comment.