添加和删​​除菜单中的项目

// add an item to a menu 
menu.addItem(item)

// remove and item from a menu
menu.removeItem(item)