Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, meta, list, cb, target) { }, }) Volcanos("onaction", {help: "交互数据", list: [], _init: function(can, msg, list, cb, target) { can.onexport._init(can, msg, list, cb, target) }, }) Volcanos("onexport", {help: "导出数据", list: [], _init: function(can, msg, list, cb, target) { can._output.innerHTML = ""; can.run(msg._event, [], function(msg) { console.log(can._root, can._name, "show", msg.result) can.core.List(msg.result, function(title) { can.page.Append(can, can._output, [{view: ["title", "div", title]}]) }) console.log(can._root, can._name, "show", can.Conf("state")) can.ui = can.page.Append(can, can._output, [{view: "state", list: can.core.List(can.Conf("state"), function(item) { return {text: can.Conf(item)||"", className: item, click: function(event) {can.onaction[item](event, can, item)}}; })}]) }) }, })