首页 > Web开发 > 详细

JS模块

时间:2019-06-19 17:56:55      阅读:100      评论:0      收藏:0      [点我收藏+]

本文主要内容翻译自《Exploring ES6-upgrade to the next version of javascript》

模块系统

  • 定义模块接口,通过接口
  • 隐藏模块的内部实现,使模块的使用者无需关注模块内部的实现细节。同时,隐藏模块的内部实现,避免有可能产生的副作用和对bug的不必要修改

ES6之前

 

 

 

 

 

 

 

 

 

参考

  1. 《javascript 忍者秘籍—https://livebook.manning.com/#!/book/secrets-of-the-javascript-ninja-second-edition/
  2. 《exploring Es6-upgrade to the next version of javascript》—https://exploringjs.com/es6/
  3. 《understanding ECMAScript》—https://github.com/nzakas/understandinges6
  4. 《You-Dont-Know-JS》—https://github.com/getify/You-Dont-Know-JS
  5. 《pritical modern javascript》—https://github.com/mjavascript/practical-modern-javascript

JS模块

原文:https://www.cnblogs.com/Jamie1032797633/p/11052707.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!