-
42 votesanswersviews
require.js:访问所有已加载的模块
有没有办法访问require.js的所有已加载模块? 背景:我想在加载所有这些函数后自动调用我的javascript-modules的 init() 函数,请参阅require.js + backbone.js: How to structure modules that have an initialize function?没有require.js我遍历我自己的模块存储并调用每个 init()... -
290 votesanswersviews
bower init - amd,es6,globals和node之间的区别
我正在创建我的第一个Bower组件 . 运行 bower init 后,脚本会问我'what types of modules does this package expose?'这些选项: amd es6 全局 节点 这些选项有什么区别?