Skip to content
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

doc: Update module.md #398

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions docs/es6/module.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ a.foo = 'hello'; // 合法操作
a = {}; // Syntax Error : 'a' is read-only;
```

不过建议即使能修改,但我们不建议。因为修改之后,我们很难差错
不过建议即使能修改,我们也不建议修改。因为修改之后,我们很难查错

`import`后面我们常接着`from`关键字,`from`指定模块文件的位置,可以是相对路径,也可以是绝对路径

Expand Down Expand Up @@ -329,4 +329,4 @@ export default App;

## 参考文献
- https://macsalvation.net/the-history-of-js-module/
- https://es6.ruanyifeng.com/#docs/module
- https://es6.ruanyifeng.com/#docs/module