Skip to content

fix: minor typo #1252

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 1-js/04-object-basics/08-symbol/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ user[id] = "Their id value";

我们的标识符和它们的标识符之间不会有冲突,因为 symbol 总是不同的,即使它们有相同的名字。

……但如果我们处于同样的目的,使用字符串 `"id"` 而不是用 symbol,那么 **就会** 出现冲突:
……但如果我们出于同样的目的,使用字符串 `"id"` 而不是用 symbol,那么 **就会** 出现冲突:

```js
let user = { name: "John" };
Expand Down
2 changes: 1 addition & 1 deletion 3-frames-and-windows/01-popup-windows/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ newWindow.onload = function() {
```warn header="同源策略"
只有在窗口是同源的时,窗口才能自由访问彼此的内容(`相同的协议://domain:port`)。

否则,例如,如果主窗口来自于 `site.com`,弹窗来自于 `gmail.com`,则处于安全性考虑,这两个窗口不能访问彼此的内容。有关详细信息,请参见 <info:cross-window-communication> 一章。
否则,例如,如果主窗口来自于 `site.com`,弹窗来自于 `gmail.com`,则出于安全性考虑,这两个窗口不能访问彼此的内容。有关详细信息,请参见 <info:cross-window-communication> 一章。
```

## 从弹窗访问窗口
Expand Down