模块
¥Modules
module.require.start
-
event
<Object> 包含以下属性¥
event
<Object> containing the following properties-
id
- 参数传递给require()
。模块名称。¥
id
- Argument passed torequire()
. Module name. -
parentFilename
- 尝试 require(id) 的模块的名称。¥
parentFilename
- Name of the module that attempted to require(id).
-
require()
执行时触发。参见 start
事件。
¥Emitted when require()
is executed. See start
event.
module.require.end
-
event
<Object> 包含以下属性¥
event
<Object> containing the following properties-
id
- 参数传递给require()
。模块名称。¥
id
- Argument passed torequire()
. Module name. -
parentFilename
- 尝试 require(id) 的模块的名称。¥
parentFilename
- Name of the module that attempted to require(id).
-
require()
调用返回时触发。参见 end
事件。
¥Emitted when a require()
call returns. See end
event.
module.require.error
-
event
<Object> 包含以下属性¥
event
<Object> containing the following properties-
id
- 参数传递给require()
。模块名称。¥
id
- Argument passed torequire()
. Module name. -
parentFilename
- 尝试 require(id) 的模块的名称。¥
parentFilename
- Name of the module that attempted to require(id).
-
-
error
<Error>
require()
抛出错误时触发。参见 error
事件。
¥Emitted when a require()
throws an error. See error
event.
module.import.asyncStart
-
event
<Object> 包含以下属性¥
event
<Object> containing the following properties-
id
- 参数传递给import()
。模块名称。¥
id
- Argument passed toimport()
. Module name. -
parentURL
- 尝试导入的模块的 URL 对象(id)。¥
parentURL
- URL object of the module that attempted to import(id).
-
import()
调用时触发。参见 asyncStart
事件。
¥Emitted when import()
is invoked. See asyncStart
event.
module.import.asyncEnd
-
event
<Object> 包含以下属性¥
event
<Object> containing the following properties-
id
- 参数传递给import()
。模块名称。¥
id
- Argument passed toimport()
. Module name. -
parentURL
- 尝试导入的模块的 URL 对象(id)。¥
parentURL
- URL object of the module that attempted to import(id).
-
import()
完成时触发。参见 asyncEnd
事件。
¥Emitted when import()
has completed. See asyncEnd
event.
module.import.error
-
event
<Object> 包含以下属性¥
event
<Object> containing the following properties-
id
- 参数传递给import()
。模块名称。¥
id
- Argument passed toimport()
. Module name. -
parentURL
- 尝试导入的模块的 URL 对象(id)。¥
parentURL
- URL object of the module that attempted to import(id).
-
-
error
<Error>
import()
抛出错误时触发。参见 error
事件。
¥Emitted when a import()
throws an error. See error
event.