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

ES6模块 CommonJS模块 #30

Open
upgrace opened this issue Apr 28, 2020 · 0 comments
Open

ES6模块 CommonJS模块 #30

upgrace opened this issue Apr 28, 2020 · 0 comments

Comments

@upgrace
Copy link
Owner

upgrace commented Apr 28, 2020

差异: CommonJS模块输出的一个值的复制,ES6模块输出的值的引用
      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