模块模式

通过闭包或 ES6 模块,封装私有变量和方法,暴露公共接口

  • 如:ES6 的 import/export、UMD 模块

results matching ""

    No results matching ""