Skip to content

Commit 2f2fef3

Browse files
authored
Merge pull request #25 from lovefengruoqing/master
exchange the target object
2 parents 5a9903c + 1cc3b33 commit 2f2fef3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: chapter12/chapter12-1.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ console.log(Person.sex); // undefined
7171
| |
7272
| |
7373
V V
74-
function Object
74+
Object function
7575
```
7676

7777
而node.js导出的,永远是module.exports指向的对象,在这里就是function。所以exports指向的那个object,现在已经不会被导出了,为其增加的属性当然也就没用了。

0 commit comments

Comments
 (0)