Skip to content
Merged
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/05-data-types/08-weakmap-weakset/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ john = null; // 覆盖引用
*/!*
```

类似的,如果我们使用对象作为常规 `Map` 的键,那么当 `Map` 存在时,该对象也将存在。它会占用内存,并且应该不会被(垃圾回收机制)回收。
类似的,如果我们使用对象作为常规 `Map` 的键,那么当 `Map` 存在时,该对象也将存在。它会占用内存,并且不会被(垃圾回收机制)回收。

例如:

Expand Down