定制钩子


【Customization Hooks】

稳定性: 1.1 - 处于活跃开发中

目前支持两种类型的模块自定义钩子:

【There are two types of module customization hooks that are currently supported:】

  1. module.register(specifier[,父级网址][, options]) 接收一个导出异步钩子函数的模块。这些函数将在一个单独的加载线程上运行。
  2. module.registerHooks(options) 接受同步钩子函数,这些函数会在模块加载的线程上直接运行。