We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
命令是指一个执行某些特定任务的指令
var MenuBar = { refresh: function () { console.log('刷新菜单界面') } } var RefreshMenuBarCommand = function (receiver) { return { execute: function () { receiver.refresh() } } } var setCommand = function (button, command) { button.onclick = function () { command.execute() } } refreshMenuBarCommand = RefreshMenuBarCommand(MenuBar) setCommand(button1, refreshMenuBarCommand) var refreshMenuBarCommand = RefreshMenuBarCommand(MenuBar) setCommand(button1, refreshMenuBarCommand)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
概念
命令是指一个执行某些特定任务的指令
实现
参考资料
The text was updated successfully, but these errors were encountered: