我们的样例使用代码注册菜单动作。
菜单会自行处理它们的事件,所以你不必为你菜单中的项目注册事件侦听器。
Menus also handle their own events, so there's no need to register event listeners on the items in your menu.
该方法确保项目是用 XM 性质注册的,以便启用特定于 XM 的菜单。
This method makes sure that the project is registered with the XM nature so as to enable XM-specific menus.
应用推荐