Skip to main content
Version: 3.7

CallEvent 触发事件

1. 结构声明

class CallEvent extends LogicItem {
calleeNamespace: string;
calleeName: string;
arguments: Array<Argument>;
}

2. 节点示例

(1) 示例

AST 如下:

{
"concept": "CallEvent",
"calleeNamespace": "",
"calleeName": "confirm",
"arguments": [
{
"concept": "Argument",
"keyword": "payload",
"expression": {
"concept": "StringLiteral",
"value": "OK!"
}
}
]
}

对应的代码如下:

onConfirm('OK!')