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

JavaScript之模块加载方案 #18

Open
chenshuhong opened this issue Sep 5, 2019 · 1 comment
Open

JavaScript之模块加载方案 #18

chenshuhong opened this issue Sep 5, 2019 · 1 comment

Comments

@chenshuhong
Copy link
Owner

chenshuhong commented Sep 5, 2019

参考文章

@chenshuhong
Copy link
Owner Author

ES6 与 CommonJS

  1. CommonJS 模块输出的是一个值的拷贝,ES6 模块输出的是值的引用。
  2. CommonJS 模块是运行时加载,ES6 模块是编译时输出接口。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant