Es6模块化

  • 2020 年 10 月 25 日
  • 筆記

Es6模块化的优点 预声明的方式导入(在一开始确定依赖关系) 多种导入导出方式 Es6缺点:某些情况下效率低.相比Com …

Continue Reading

CommonJs

  • 2020 年 10 月 24 日
  • 筆記

CommonJs模块化运行在node环境中,浏览器之所以不兼容CommonJs,是因为浏览器缺node环境中的4个变量r …

Continue Reading

01模块化简介

  • 2020 年 7 月 14 日
  • 筆記

模块简介 1.1什么是模块 在计算机程序的开发过程中,随着程序代码越写越多,在一个文件里代码就会越来越长,越来越不容易维 …

Continue Reading