Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Jason Ren <[email protected]>
  • Loading branch information
skyclouds2001 and jasonren0403 authored Sep 10, 2024
1 parent 65c86be commit 7e505be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion files/zh-cn/web/api/broadcastchannel/close/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ l10n:

{{APIRef("BroadCastChannel API")}} {{AvailableInWorkers}}

{{domxref("BroadcastChannel")}} 接口的 **`close()`** 方法终止与底层通道的连接,从而允许对对象进行垃圾回收。这是必须执行的步骤,因为浏览器没有其他方法可以知道不再需要此通道
{{domxref("BroadcastChannel")}} 接口的 **`close()`** 方法终止与底层频道的连接,从而允许对对象进行垃圾回收。这是必须执行的步骤,因为浏览器没有其他方法可以知道不再需要此频道

## 语法

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ l10n:

{{APIRef("BroadCastChannel API")}}{{AvailableInWorkers}}

{{domxref("BroadcastChannel")}} 接口的 **`messageerror`** 事件在无法反序列化的消息到达通道时触发
{{domxref("BroadcastChannel")}} 接口的 **`messageerror`** 事件在无法反序列化的消息到达频道时触发

## 语法

Expand Down Expand Up @@ -55,7 +55,7 @@ channel.addEventListener("messageerror", (event) => {
});
```

相同,但使用 `onmessage``onmessageerror` 事件处理器属性:
下述代码也实现了相同需求,但使用 `onmessage``onmessageerror` 事件处理器属性:

```js
const channel = new BroadcastChannel("example-channel");
Expand Down

0 comments on commit 7e505be

Please sign in to comment.