You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -302,7 +302,7 @@ export default function Form() {
302
302
303
303
#### 滚动图片到视图 {/*scrolling-an-image-into-view*/}
304
304
305
-
在这个示例中,点击按钮将会把图片滚动到视图。这里使用 ref 绑定到列表的 DOM 节点,然后调用 DOM 的 [`querySelectorAll`](https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelectorAll) API 找到我们想要滚动的图片。
305
+
在这个示例中,点击按钮将会把图片滚动到视图。这里使用 ref 绑定到列表的 DOM 节点,然后调用 DOM 的 [`querySelectorAll`](https://developer.mozilla.org/zh-CN/docs/Web/API/Document/querySelectorAll) API 找到我们想要滚动的图片。
306
306
307
307
<Sandpack>
308
308
@@ -395,7 +395,7 @@ li {
395
395
396
396
#### 播放和暂停视频 {/*playing-and-pausing-a-video*/}
397
397
398
-
这个示例使用 ref 调用 `<video>` DOM 节点的 [`play()`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/play) 和 [`pause()`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/pause)。
398
+
这个示例使用 ref 调用 `<video>` DOM 节点的 [`play()`](https://developer.mozilla.org/zh-CN/docs/Web/API/HTMLMediaElement/play) 和 [`pause()`](https://developer.mozilla.org/zh-CN/docs/Web/API/HTMLMediaElement/pause)。
0 commit comments