新增和刪​​除選單中的專案

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

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