Skip to content

Commit b17b7a0

Browse files
committed
Update solution.md
1 parent 393c05f commit b17b7a0

File tree

1 file changed

+6
-6
lines changed
  • 1-js/05-data-types/08-weakmap-weakset/02-recipients-when-read

1 file changed

+6
-6
lines changed
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11

2-
我们使用 `WeakMap` 保存日期:
2+
我们可以使用 `WeakMap` 保存日期:
33

4-
```js run
4+
```js
55
let messages = [
6-
{text: "Hello", from: "John"},
7-
{text: "How goes?", from: "John"},
8-
{text: "See you soon", from: "Alice"}
6+
{text: "Hello", from: "John"},
7+
{text: "How goes?", from: "John"},
8+
{text: "See you soon", from: "Alice"}
99
];
1010

1111
let readMap = new WeakMap();
1212

1313
readMap.set(messages[0], new Date(2017, 1, 1));
14-
// Date 对象我们将会稍后学习
14+
// 我们稍后将学习 Date 对象
1515
```

0 commit comments

Comments
 (0)