mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 10:22:23 +00:00
Update module.md
This commit is contained in:
parent
04f582da78
commit
6f120e1212
@ -31,7 +31,7 @@ import { stat, exists, readFile } from 'fs';
|
||||
除了静态加载带来的各种好处,ES6 模块还有以下好处。
|
||||
|
||||
- 不再需要`UMD`模块格式了,将来服务器和浏览器都会支持 ES6 模块格式。目前,通过各种工具库,其实已经做到了这一点。
|
||||
- 将来浏览器的新 API 就能用模块格式提供,不再必要做成全局变量或者`navigator`对象的属性。
|
||||
- 将来浏览器的新 API 就能用模块格式提供,不再必须做成全局变量或者`navigator`对象的属性。
|
||||
- 不再需要对象作为命名空间(比如`Math`对象),未来这些功能可以通过模块提供。
|
||||
|
||||
## 严格模式
|
||||
|
Loading…
x
Reference in New Issue
Block a user