Patent attributes
The present disclosure discloses a method of displaying a cascading menu that includes a plurality of submenus. The method determines a first submenu as indicated for browsing by a user based on a clicking event of the user. When an operation interface of the first submenu is in a collapsed mode, a number of submenus that are currently in an expanded mode within an operation interface of the cascading menu is counted. When the number of submenus that are currently in the expanded mode reaches a defined threshold, at least a second submenu is selected from the submenus that are currently in the expanded mode, and an operation interface of the second submenu is shrunk. The operation interface of the first submenu is expanded. Therefore, a size of the operation interface of the cascading menu will not increase as the number of the expanded submenus increases. As such, the amount of a page space occupied by the cascading menu is reduced and utilization of the page space is improved. The present disclosure further discloses a terminal apparatus.