To access the Menu Object, simply use.
要访问Menu对象,只需使用。
The Menu object also contains an attribute called items whose value can be one or more MenuItem objects.
Menu对象还包含一个名为items的属性,该属性的值可以是一个或多个MenuItem对象。
The Menu object has a text attribute whose value is a String representing the title of the menu to be displayed — File in this case.
Menu 对象有一个 text 属性,该属性的值是一个 String,表示要显示的菜单的标题 — 本例为 File。
应用推荐