1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-25 19:22:21 +00:00

Merge branch 'gh-pages' of github.com:ruanyf/es6tutorial into gh-pages

This commit is contained in:
ruanyf 2016-12-26 06:11:23 +08:00
commit e653a31d7b

View File

@ -31,7 +31,7 @@ import { stat, exists, readFile } from 'fs';
除了静态加载带来的各种好处ES6 模块还有以下好处。
- 不再需要`UMD`模块格式了,将来服务器和浏览器都会支持 ES6 模块格式。目前,通过各种工具库,其实已经做到了这一点。
- 将来浏览器的新 API 就能用模块格式提供,不再必做成全局变量或者`navigator`对象的属性。
- 将来浏览器的新 API 就能用模块格式提供,不再必做成全局变量或者`navigator`对象的属性。
- 不再需要对象作为命名空间(比如`Math`对象),未来这些功能可以通过模块提供。
## 严格模式