1
0
forked from x/ContextOS
This commit is contained in:
shaoying 2020-05-13 10:59:27 +08:00
parent 7ca07f0b1c
commit bf8f214f37

View File

@ -5,8 +5,9 @@ Volcanos("onengine", { river: {
{type: "text", name: "one"}, {type: "text", name: "one"},
{type: "button", name: "one"}, {type: "button", name: "one"},
], engine: function(event, can, msg, pane, cmds, cb) { ], engine: function(event, can, msg, pane, cmds, cb) {
msg.Echo("hello world") can.onappend.toast(can, "hello", "world");
typeof cb == "function" && cb(msg) msg.Echo("hello world");
typeof cb == "function" && cb(msg);
}}, }},
]}, ]},
"world": {name: "应用2", action: [ "world": {name: "应用2", action: [