mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-26 09:14:06 +08:00
16 lines
492 B
JavaScript
16 lines
492 B
JavaScript
{
|
|
show: function(event, item, option, plugin) {
|
|
var args = item.value == "所有"? ["all"]: []
|
|
option.Run(event, args, function(msg) {
|
|
option.ondaemon(msg)
|
|
})
|
|
},
|
|
init: function(page, pane, plugin, option, output) {
|
|
option.ondaemon = function(msg) {
|
|
output.innerHTML = ""
|
|
kit.AppendChild(output, [{type: "code", list: [{text: [msg.result.join(""), "pre"]}]}])
|
|
}
|
|
output.innerHTML = "hello"
|
|
}
|
|
}
|