-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Taro.createIntersectionObserver (#4467)
- Loading branch information
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ✔️ | | | | ||
|
24 changes: 24 additions & 0 deletions
24
...versioned_docs/version-1.3.14/apis/interface/wxml/createIntersectionObserver.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ✔️ | | | |