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 之 import VS require | 幽居空谷轩 #6

Open
nicejade opened this issue Sep 6, 2019 · 0 comments
Open

JavaScript 之 import VS require | 幽居空谷轩 #6

nicejade opened this issue Sep 6, 2019 · 0 comments

Comments

@nicejade
Copy link
Owner

nicejade commented Sep 6, 2019

https://www.lovejade.cn/zh/article/js-import-export-vs-require-module-exports.html

自从有了 Es6 模块系统后,在各种场景,可以愉悦借助 import/export,来充作模块加载方案。同时,你可能也会看到 import 与 export default,或基于 CommonJS 规范的 require 与 module.exports 等诸多用法;本篇文章,旨在探讨 JavaScript 模块化体系中:ES6 模块与 CommonJS 模块的差异,以及各自用法注意事项等。

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

No branches or pull requests

1 participant