Methods
call(method, …parameters)
调用脚本方法
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
method |
string
|
方法名称 |
|
parameters |
any
|
<repeatable> |
传递参数 |
emit(type, parameter)
发送脚本事件
Parameters:
| Name | Type | Description |
|---|---|---|
type |
string
|
事件类型 |
parameter |
any
|
传递参数 |
(static) compileParamList(id, parameters) → {Array}
编译脚本参数列表
Parameters:
| Name | Type | Description |
|---|---|---|
id |
string
|
脚本文件ID |
parameters |
Array.<Object>
|
脚本参数数据列表 |