Summary of the invention
The present invention is directed to solve at least some of the technical problems in related technologies.
For this purpose, the first purpose of this invention is to propose a kind of navigation bar generation method, for solving in the prior art
The high problem of navigation bar maintenance cost.
Second object of the present invention is to propose a kind of navigation bar generating means.
Third object of the present invention is to propose a kind of electronic equipment.
Fourth object of the present invention is to propose a kind of non-transitorycomputer readable storage medium.
5th purpose of the invention is to propose a kind of computer program product.
In order to achieve the above object, first aspect present invention embodiment proposes a kind of navigation bar generation method, including:
After getting the instruction for generating navigation bar, menu configuration information needed for generating navigation bar is obtained;The menu
Include in configuration information:The configuration information of the corresponding submenus at different levels of the configuration information of main menu, the main menu;
The configuration information of the corresponding submenus at different levels of configuration information, the main menu of the main menu is rendered,
Menu after being rendered;
According to the menu level between the main menu and submenu at different levels, the menu after the rendering is shown
Show, generates navigation bar.
Further, the corresponding submenus at different levels of the main menu include at least:Level-one submenu and secondary sub-menu;
The configuration information of the level-one submenu includes in the configuration information of the main menu;The secondary sub-menu
Configuration information includes in the configuration information of corresponding level-one submenu;
The method further includes:By submenu included in the configuration information of the main menu, it is determined as the master
The corresponding level-one submenu of menu;
By submenu included in the configuration information of the level-one submenu, it is corresponding to be determined as the level-one submenu
Secondary sub-menu obtains the menu level between the main menu and submenu at different levels.
Further, include in the configuration information of main menu and submenu at different levels:It shows information, whether permits for indicating
Perhaps respective menu is shown;
The configuration information of the corresponding submenus at different levels of configuration information, the main menu to the main menu carries out wash with watercolours
It contaminates, before the menu after being rendered, further includes:
According to the display information, it is determined whether allow to show respective menu;
If not allowing to show respective menu, the configuration information of respective menu is not handled;
If allowing to show respective menu, the configuration information of respective menu is rendered, the menu after being rendered.
Further, the menu level according between the main menu and submenu at different levels, after the rendering
Menu shown, generate navigation bar after, further include:
Obtain the target menu of user's selection;
According to the target menu, the menu configuration information is inquired, is obtained from main menu to the road of the target menu
By to obtain the corresponding page and shown according to the routing.
Further, the method further includes:
It obtains navigation bar and updates request;The navigation bar updates in request:The configuration information of menu to be added, institute
State the rank and the corresponding Previous Menu of the menu of menu;
When the rank of the menu is level-one submenu, the configuration information of the menu is added to corresponding main menu
Configuration information in;
When the rank of the menu is secondary sub-menu, the configuration information of the menu is added to corresponding level-one
In the configuration information of menu.
The navigation bar generation method of the embodiment of the present invention, by obtaining and generating after getting the instruction for generating navigation bar
Menu configuration information needed for navigation bar;Include in menu configuration information:Configuration information, the main menu of main menu are corresponding at different levels
The configuration information of submenu;The configuration information of the corresponding submenus at different levels of configuration information, the main menu of main menu is rendered,
Menu after being rendered;According to the menu level between main menu and submenu at different levels, the menu after rendering is shown
Show, navigation bar is generated, thus when navigation bar updates, it is only necessary to menu configuration information is updated accordingly, such as
The configuration information for increasing or modifying some menu reduces maintenance cost and maintenance is multiple without modifying to code
Miscellaneous degree.
In order to achieve the above object, second aspect of the present invention embodiment proposes a kind of navigation bar generating means, including:
Module is obtained, is configured for after getting the instruction for generating navigation bar, obtaining menu needed for generating navigation bar
Information;Include in the menu configuration information:The configuration of the corresponding submenus at different levels of the configuration information of main menu, the main menu
Information;
Processing module is rendered, for the corresponding submenus at different levels of configuration information, the main menu to the main menu
Configuration information is rendered, the menu after being rendered;
Display module, for according to the menu level between the main menu and submenu at different levels, after the rendering
Menu shown, generate navigation bar.
Further, the corresponding submenus at different levels of the main menu include at least:Level-one submenu and secondary sub-menu;
The configuration information of the level-one submenu includes in the configuration information of the main menu;The secondary sub-menu
Configuration information includes in the configuration information of corresponding level-one submenu;
The device further includes:Determining module, for by submenu included in the configuration information of the main menu,
It is determined as the corresponding level-one submenu of the main menu;
By submenu included in the configuration information of the level-one submenu, it is corresponding to be determined as the level-one submenu
Secondary sub-menu obtains the menu level between the main menu and submenu at different levels.
Further, include in the configuration information of main menu and submenu at different levels:It shows information, whether permits for indicating
Perhaps respective menu is shown;
The rendering processing module is also used to according to the display information, it is determined whether allows to show respective menu;
If not allowing to show respective menu, the configuration information of respective menu is not handled;
If allowing to show respective menu, the configuration information of respective menu is rendered, the menu after being rendered.
Further, the acquisition module is also used to,
Obtain the target menu of user's selection;
According to the target menu, the menu configuration information is inquired, is obtained from main menu to the road of the target menu
By to obtain the corresponding page and shown according to the routing.
Further, the device further includes:Processing module;
The acquisition module is also used to obtain navigation bar and updates request;The navigation bar updates in request:It is to be added
Menu configuration information, the rank of the menu and the corresponding Previous Menu of the menu;
The processing module, for the rank in the menu be level-one submenu when, by the configuration information of the menu
It is added in the configuration information of corresponding main menu;
When the rank of the menu is secondary sub-menu, the configuration information of the menu is added to corresponding level-one
In the configuration information of menu.
The navigation bar generating means of the embodiment of the present invention, by obtaining and generating after getting the instruction for generating navigation bar
Menu configuration information needed for navigation bar;Include in menu configuration information:Configuration information, the main menu of main menu are corresponding at different levels
The configuration information of submenu;The configuration information of the corresponding submenus at different levels of configuration information, the main menu of main menu is rendered,
Menu after being rendered;According to the menu level between main menu and submenu at different levels, the menu after rendering is shown
Show, navigation bar is generated, thus when navigation bar updates, it is only necessary to menu configuration information is updated accordingly, such as
The configuration information for increasing or modifying some menu reduces maintenance cost and maintenance is multiple without modifying to code
Miscellaneous degree.
In order to achieve the above object, third aspect present invention embodiment proposes a kind of electronic equipment, including memory, processor
And the computer program that can be run on a memory and on a processor is stored, the processor is realized such as when executing described program
The upper navigation bar generation method.
To achieve the goals above, fourth aspect present invention embodiment proposes a kind of computer-readable storage of non-transitory
Medium realizes method as described above when the instruction in the storage medium is executed by processor.
In order to achieve the above object, fifth aspect present invention embodiment proposes a kind of computer program product, when the calculating
When instruction processing unit in machine program product executes, method as described above is realized.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partially become from the following description
Obviously, or practice through the invention is recognized.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to is used to explain the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings the navigation bar generation method and device of the embodiment of the present invention are described.
Fig. 1 is a kind of flow diagram of navigation bar generation method provided in an embodiment of the present invention.As shown in Figure 1, this is led
Boat column generation method includes the following steps:
S101, when get generate navigation bar instruction after, obtain generate navigation bar needed for menu configuration information;Menu
Include in configuration information:The configuration information of the corresponding submenus at different levels of configuration information, the main menu of main menu.
The executing subject of navigation bar generation method provided by the invention is navigation bar generating means, navigation bar generating means tool
Body can provide or show that the hardware device of the page comprising navigation bar or hardware are set for terminal device, server etc.
The software of standby upper installation, such as live streaming audit platform;In another example navigation bar automatically generating program.Wherein, it can be shown in navigation bar
Multiple main menus are shown with, may include corresponding submenu in the drop-down list of main menu, may be used also in the drop-down list of submenu
To include corresponding sub- submenu etc..
In the present embodiment, by live streaming audit platform for, live streaming audit platform the page on can show navigation bar with
And body matter.Wherein, may include in body matter:Video and relevant information, as shown in Fig. 2, for live streaming audit platform
Page schematic diagram.In Fig. 2, the menu shown in navigation bar has:Audit, operation, inspection, game, problem identification, Yong Huguan
Reason, function and log.As shown in figure 3, for the drop-down list schematic diagram of menu in Fig. 2.In Fig. 3, under menu " operation "
The menu for including in list is drawn to have:It is homepage, newest, neighbouring, whole, hiding, doubtful pornographic, homepage undercarriage, latest page undercarriage, attached
Nearly page undercarriage.
In the present embodiment, may include in the configuration information of main menu and submenu at different levels:The description information of menu and
Icon.Wherein, the description information of menu can be the title etc. of menu.In addition, main menu and submenu at different levels match confidence
Can also include in breath:Whether the display information of menu allows to show menu for indicating.For example, the configuration of menu " operation "
Information can with as shown in figure 4, in box in Fig. 4 for JS Object Markup Language (JavaScript Object Notation,
JSON) the configuration information of the menu " operation " described.Wherein, desc indicates the description information of menu;The figure of icon expression menu
Mark.
For example, menu configuration information can be as shown in figure 5, in Fig. 5, main menu includes:Game;The corresponding son of game
Menu includes:Game audit, operation and inspection.Wherein, no corresponding submenu is audited in game;The corresponding submenu of operation
Including:Game homepage and game undercarriage;Inspection corresponding submenu include:Game homepage and game undercarriage.Wherein, in game
Configuration information game in, including:The description information desc of game, the icon icon of game and the corresponding sub- dish of game
It is single.Wherein, the corresponding submenu of game is described in first sub below icon.
And in first sub, examine indicates first submenu " game audit " of game;Manage indicates trip
Second submenu " operation " of play;The third submenu " inspection " of inspection expression game.Include in manage:
The description information of operation, and the corresponding submenu of operation.Wherein, second in Fig. 5 of the corresponding submenu of operation
It is described in sub.
In the present embodiment, the submenu of menu refers to the menu in the drop-down list of menu.For example, in Fig. 5, trip
The sub-menus of play is game audit, operation and inspection;The Previous Menu of game audit is game;The Previous Menu of inspection is trip
Play.
In the present embodiment, the instruction for generating navigation bar for example can be the corresponding page open request of navigation bar.User can
With input page address in address field, or click the corresponding chained address in page address etc., navigation bar generating means can be with
The aforesaid operations of user are identified as the corresponding page open request of navigation bar.
S102, the configuration information of the corresponding submenus at different levels of configuration information, the main menu of main menu is rendered, is obtained
Menu after rendering.
In the present embodiment, can also include in the configuration information of main menu and submenu at different levels:Information is shown, for marking
Whether show allows to show respective menu.Corresponding, before step 102, the method can also include the following steps:According to aobvious
Show information, it is determined whether allow to show respective menu;If not allowing to show respective menu, not to the configuration information of respective menu
It is handled;If allowing to show respective menu, the configuration information of respective menu is rendered, the menu after being rendered.
Wherein, in the case where not allowing to show menu, menu would not be shown in navigation bar, user also would not be right
Menu such as is clicked, is selected at the operation.Wherein, the menu shown is not allowed to be generally maintenance personnel or other special personnels
The menu of click is had permission, ordinary user does not have corresponding authority click, then does not show respective menu on the page of ordinary user.
S103, according to the menu level between main menu and submenu at different levels, the menu after rendering is shown, it is raw
At navigation bar.
In the present embodiment, according in menu configuration information, the configuration information of the configuration information of main menu and submenus at different levels
Between positional relationship, can determine the menu level between main menu and submenu at different levels.It is corresponding at different levels with main menu
Submenu includes at least:It is illustrated for level-one submenu and secondary sub-menu.In menu configuration information, level-one submenu
Configuration information may include in the configuration information of main menu;The configuration information of secondary sub-menu may include corresponding one
In the configuration information of grade submenu.To which navigation bar generating means are when reading menu configuration information, main menu can be read
Configuration information in included level-one submenu, and read second level included in the configuration information of level-one submenu
Menu, so that it is determined that the menu level between main menu and submenu at different levels.To between the configuration information according to each menu
Comprising with by inclusion relation, it will be able to determine the menu level between main menu and submenu at different levels, do not need with code
Form indicate the menu level between main menu and submenu at different levels, and then do not need to read a large amount of code to obtain
Menu level between main menu and submenu at different levels improves the menu level between main menu and submenu at different levels
Obtain efficiency.
In the present embodiment, navigation bar generating means to the reading process of menu configuration information can for from high-level menu to
The process of low level menu;For the configuration information of the menu of same level, can be read out in order.For example, in Fig. 5
For menu configuration information, navigation bar generating means are successively read the configuration information of following menu:(1) game;(2) game is examined
Core;(3) it runs;(4) game homepage;(5) game undercarriage;(6) it patrols;(7) game homepage;(8) game undercarriage.
In the present embodiment, the process that navigation bar generating means execute step 103 is specifically as follows, based on the rank of menu
When menu, the menu after rendering is shown;When the rank of menu is level-one submenu, the menu after rendering is shown
In the drop-down list of corresponding main menu;When the rank of menu is secondary sub-menu, the menu after rendering is shown corresponding
Level-one submenu drop-down list in.
Further, on the basis of the above embodiments, after step 103, the method can also include:It obtains and uses
The target menu of family selection;According to target menu, menu configuration information is inquired, obtains the routing from main menu to target menu,
To obtain the corresponding page and shown according to routing.For example, the submenu game homepage in Fig. 5, from game to operation
Path can be:/game/manage/homepage.
In the present embodiment, the corresponding relationship of routing and content of pages can be pre-saved, so that navigation bar generates
Device or other equipment can remove inquiry corresponding relationship according to routing, corresponding content of pages be obtained, according to the corresponding page
Content carries out the corresponding page and shows, to improve page display speed.
Further, on the basis of the above embodiments, in the case where navigation bar needs to update, the method may be used also
To include:It obtains navigation bar and updates request;Navigation bar updates in request:The configuration information of menu to be added, menu
Rank and the corresponding Previous Menu of menu;When the rank of menu is level-one submenu, the configuration information of menu is added to
In the configuration information of corresponding main menu;When the rank of menu is secondary sub-menu, the configuration information of menu is added to pair
In the configuration information for the level-one submenu answered.
In addition, the configuration information of menu is directly appended to the corresponding dish of navigation bar if the rank of menu is main menu
In single configuration information.
Further, navigation bar, which updates in request, to include:Updating type;The updating type is:Addition is deleted
Or modification.In the case where updating type is to delete, navigation bar, which updates in request, may include:The configuration of menu to be deleted
Information and updating type;Described in navigation bar generating means can search directly from the corresponding menu configuration information of navigation bar
The configuration information of menu to be deleted, and deleted.It should be noted that if also being wrapped in the configuration information of menu to be deleted
It includes:The corresponding sub-menus of menu to be deleted, then the delete operation can also delete the configuration information of corresponding sub-menus.
In the case where updating type is the request of modification, modification can be there are two types of situation, and one is the modifications of menu level, a kind of
It is the modification of the configuration information of menu.If the modification of menu level, then navigation bar, which updates in request, may include:To be modified
The configuration information of menu, the current level of menu to be modified is with target rank and updating type.It is with menu to be modified
For level-one submenu, the level-one submenu is if desired revised as main menu, then by the configuration information of the level-one submenu from
It takes out, is directly placed in the corresponding menu configuration information of navigation bar in the configuration information of corresponding main menu.It needs to illustrate
It is that, when the rank of the level-one submenu improves, the rank of the corresponding junior's submenu of the level-one submenu also correspondinglys increase.
If the modification of the configuration information of menu, then navigation bar, which updates in request, may include:Menu to be modified is worked as
Preceding configuration information, target configuration information and updating type.By taking menu to be modified is level-one submenu as an example, it can lead
It navigates in the corresponding menu configuration information in column, the current configuration information of menu to be modified is revised as target configuration information.
In the present embodiment, when being updated to navigation bar, it is only necessary to changed menu in menu configuration information
Configuration information be updated, be updated without the configuration information to other menus, and navigation bar generating means can be with
The corresponding menu configuration information of navigation bar is updated automatically according to request is updated, is updated manually without user, less
It is related to the modification to code, improves the speed and efficiency of navigation bar update.
The navigation bar generation method of the embodiment of the present invention, by obtaining and generating after getting the instruction for generating navigation bar
Menu configuration information needed for navigation bar;Include in menu configuration information:Configuration information, the main menu of main menu are corresponding at different levels
The configuration information of submenu;The configuration information of the corresponding submenus at different levels of configuration information, the main menu of main menu is rendered,
Menu after being rendered;According to the menu level between main menu and submenu at different levels, the menu after rendering is shown
Show, navigation bar is generated, thus when navigation bar updates, it is only necessary to menu configuration information is updated accordingly, such as
The configuration information for increasing or modifying some menu reduces maintenance cost and maintenance is multiple without modifying to code
Miscellaneous degree.
Fig. 6 is a kind of structural schematic diagram of navigation bar generating means provided in an embodiment of the present invention.As shown in fig. 6, including:
Obtain module 61, rendering processing module 62 and display module 63.
Wherein, module 61 is obtained, for obtaining dish needed for generating navigation bar after getting the instruction for generating navigation bar
Single configuration information;Include in the menu configuration information:The corresponding submenus at different levels of the configuration information of main menu, the main menu
Configuration information;
Processing module 62 is rendered, for the corresponding submenus at different levels of configuration information, the main menu to the main menu
Configuration information rendered, the menu after being rendered;
Display module 63, for according to the menu level between the main menu and submenu at different levels, to the rendering
Menu afterwards is shown, navigation bar is generated.
Navigation bar generating means provided by the invention, which are specifically as follows terminal device, server etc., can provide or show packet
The software installed on the hardware device or hardware device of the page containing navigation bar, such as live streaming audit platform;In another example leading
Navigate column automatically generating program.Wherein, multiple main menus can be shown in navigation bar, may include in the drop-down list of main menu
Corresponding submenu can also include corresponding sub- submenu etc. in the drop-down list of submenu.
In the present embodiment, may include in the configuration information of main menu and submenu at different levels:The description information of menu and
Icon.Wherein, the description information of menu can be the title etc. of menu.In addition, main menu and submenu at different levels match confidence
Can also include in breath:Whether the display information of menu allows to show menu for indicating.For example, the configuration of menu " operation "
Information can with as shown in figure 4, in box in Fig. 4 for JS Object Markup Language (JavaScript Object Notation,
JSON) the configuration information of the menu " operation " described.Wherein, desc indicates the description information of menu;The figure of icon expression menu
Mark.
In the present embodiment, the instruction for generating navigation bar for example can be the corresponding page open request of navigation bar.User can
With input page address in address field, or click the corresponding chained address in page address etc., navigation bar generating means can be with
The aforesaid operations of user are identified as the corresponding page open request of navigation bar.
In the present embodiment, can also include in the configuration information of main menu and submenu at different levels:Information is shown, for marking
Whether show allows to show respective menu.Corresponding, the rendering processing module 62 can be also used for, and according to display information, determine
Whether allow to show respective menu;If not allowing to show respective menu, the configuration information of respective menu is not handled;If
Allow to show respective menu, then the configuration information of respective menu is rendered, the menu after being rendered.
Wherein, in the case where not allowing to show menu, menu would not be shown in navigation bar, user also would not be right
Menu such as is clicked, is selected at the operation.Wherein, the menu shown is not allowed to be generally maintenance personnel or other special personnels
The menu of click is had permission, ordinary user does not have corresponding authority click, then does not show respective menu on the page of ordinary user.
In the present embodiment, according in menu configuration information, the configuration information of the configuration information of main menu and submenus at different levels
Between positional relationship, can determine the menu level between main menu and submenu at different levels.It is corresponding at different levels with main menu
Submenu includes at least:It is illustrated for level-one submenu and secondary sub-menu.In menu configuration information, level-one submenu
Configuration information may include in the configuration information of main menu;The configuration information of secondary sub-menu may include corresponding one
In the configuration information of grade submenu.Therefore, in conjunction with reference Fig. 7, on the basis of embodiment shown in Fig. 6, the device may be used also
To include:Determining module 64, for being determined as the main menu for submenu included in the configuration information of the main menu
Corresponding level-one submenu;By submenu included in the configuration information of the level-one submenu, it is determined as level-one
The corresponding secondary sub-menu of menu, obtains the menu level between the main menu and submenu at different levels.
In the present embodiment, according between the configuration information of each menu comprising with by inclusion relation, it will be able to determine entree
Menu level between submenus single and at different levels, do not need to indicate in the form of code main menu and submenu at different levels it
Between menu level, and then do not need to read a large amount of code to obtain the menu level between main menu and submenu at different levels
Not, the acquisition efficiency of the menu level between main menu and submenu at different levels is improved.
In the present embodiment, navigation bar generating means to the reading process of menu configuration information can for from high-level menu to
The process of low level menu;For the configuration information of the menu of same level, can be read out in order.For example, in Fig. 5
For menu configuration information, navigation bar generating means are successively read the configuration information of following menu:(1) game;(2) game is examined
Core;(3) it runs;(4) game homepage;(5) game undercarriage;(6) it patrols;(7) game homepage;(8) game undercarriage.
In the present embodiment, display module 63 specifically can be used for, when the rank of menu is main menu, to the dish after rendering
Singly shown;When the rank of menu is level-one submenu, the menu after rendering is shown into the drop-down in corresponding main menu
In list;When the rank of menu is secondary sub-menu, the menu after rendering is shown into the drop-down in corresponding level-one submenu
In list.
Further, on the basis of the above embodiments, the acquisition module 61 can be also used for, and obtain user's selection
Target menu;According to the target menu, the menu configuration information is inquired, is obtained from main menu to the road of the target menu
By to obtain the corresponding page and shown according to the routing.For example, the submenu in Fig. 5, from game to operation
The path of game homepage can be:/game/manage/homepage.
In the present embodiment, the corresponding relationship of routing and content of pages can be pre-saved, so that navigation bar generates
Device or other equipment can remove inquiry corresponding relationship according to routing, corresponding content of pages be obtained, according to the corresponding page
Content carries out the corresponding page and shows, to improve page display speed.
Further, on the basis of the above embodiments, in the case where navigation bar needs to update, in conjunction with reference Fig. 8,
On the basis of Fig. 6 or embodiment illustrated in fig. 7, the device can also include:Processing module 65;
The acquisition module 61 is also used to obtain navigation bar and updates request;The navigation bar updates in request:Wait add
The configuration information of the menu added, the rank of the menu and the corresponding Previous Menu of the menu;
The processing module 65, for the rank in the menu be level-one submenu when, by the menu match confidence
Breath is added in the configuration information of corresponding main menu;
When the rank of the menu is secondary sub-menu, the configuration information of the menu is added to corresponding level-one
In the configuration information of menu.
In addition, the configuration information of menu is directly appended to the corresponding dish of navigation bar if the rank of menu is main menu
In single configuration information.
Further, navigation bar, which updates in request, to include:Updating type;The updating type is:Addition is deleted
Or modification.In the case where updating type is to delete, navigation bar, which updates in request, may include:The configuration of menu to be deleted
Information and updating type;Described in navigation bar generating means can search directly from the corresponding menu configuration information of navigation bar
The configuration information of menu to be deleted, and deleted.It should be noted that if also being wrapped in the configuration information of menu to be deleted
It includes:The corresponding sub-menus of menu to be deleted, then the delete operation can also delete the configuration information of corresponding sub-menus.
In the case where updating type is the request of modification, modification can be there are two types of situation, and one is the modifications of menu level, a kind of
It is the modification of the configuration information of menu.If the modification of menu level, then navigation bar, which updates in request, may include:To be modified
The configuration information of menu, the current level of menu to be modified is with target rank and updating type.It is with menu to be modified
For level-one submenu, the level-one submenu is if desired revised as main menu, then by the configuration information of the level-one submenu from
It takes out, is directly placed in the corresponding menu configuration information of navigation bar in the configuration information of corresponding main menu.It needs to illustrate
It is that, when the rank of the level-one submenu improves, the rank of the corresponding junior's submenu of the level-one submenu also correspondinglys increase.
If the modification of the configuration information of menu, then navigation bar, which updates in request, may include:Menu to be modified is worked as
Preceding configuration information, target configuration information and updating type.By taking menu to be modified is level-one submenu as an example, it can lead
It navigates in the corresponding menu configuration information in column, the current configuration information of menu to be modified is revised as target configuration information.
In the present embodiment, when being updated to navigation bar, it is only necessary to changed menu in menu configuration information
Configuration information be updated, be updated without the configuration information to other menus, and navigation bar generating means can be with
The corresponding menu configuration information of navigation bar is updated automatically according to request is updated, is updated manually without user, less
It is related to the modification to code, improves the speed and efficiency of navigation bar update.
The navigation bar generating means of the embodiment of the present invention, by obtaining and generating after getting the instruction for generating navigation bar
Menu configuration information needed for navigation bar;Include in menu configuration information:Configuration information, the main menu of main menu are corresponding at different levels
The configuration information of submenu;The configuration information of the corresponding submenus at different levels of configuration information, the main menu of main menu is rendered,
Menu after being rendered;According to the menu level between main menu and submenu at different levels, the menu after rendering is shown
Show, navigation bar is generated, thus when navigation bar updates, it is only necessary to menu configuration information is updated accordingly, such as
The configuration information for increasing or modifying some menu reduces maintenance cost and maintenance is multiple without modifying to code
Miscellaneous degree.
Fig. 9 is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention.The electronic equipment includes:
Memory 1001, processor 1002 and it is stored in the calculating that can be run on memory 1001 and on processor 1002
Machine program.
Processor 1002 realizes the navigation bar generation method provided in above-described embodiment when executing described program.
Further, electronic equipment further includes:
Communication interface 1003, for the communication between memory 1001 and processor 1002.
Memory 1001, for storing the computer program that can be run on processor 1002.
Memory 1001 may include high speed RAM memory, it is also possible to further include nonvolatile memory (non-
Volatile memory), a for example, at least magnetic disk storage.
Processor 1002 realizes navigation bar generation method described in above-described embodiment when for executing described program.
If memory 1001, processor 1002 and the independent realization of communication interface 1003, communication interface 1003, memory
1001 and processor 1002 can be connected with each other by bus and complete mutual communication.The bus can be industrial standard
Architecture (Industry Standard Architecture, referred to as ISA) bus, external equipment interconnection
(Peripheral Component, referred to as PCI) bus or extended industry-standard architecture (Extended Industry
Standard Architecture, referred to as EISA) bus etc..The bus can be divided into address bus, data/address bus, control
Bus processed etc..Only to be indicated with a thick line in Fig. 9, it is not intended that an only bus or a type of convenient for indicating
Bus.
Optionally, in specific implementation, if memory 1001, processor 1002 and communication interface 1003, are integrated in one
It is realized on block chip, then memory 1001, processor 1002 and communication interface 1003 can be completed mutual by internal interface
Communication.
Processor 1002 may be a central processing unit (Central Processing Unit, referred to as CPU), or
Person is specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC) or quilt
It is configured to implement one or more integrated circuits of the embodiment of the present invention.
The present embodiment also provides a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that
The program realizes navigation bar generation method as described above when being executed by processor.
The present embodiment also provides a kind of computer program product, when the instruction processing unit in the computer program product is held
When row, navigation bar generation method as described above.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not
It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office
It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field
Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples
It closes and combines.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance
Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or
Implicitly include at least one this feature.In the description of the present invention, the meaning of " plurality " is at least two, such as two, three
It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes
It is one or more for realizing custom logic function or process the step of executable instruction code module, segment or portion
Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable
Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, to execute function, this should be of the invention
Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use
In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction
The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass
Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment
It sets.The more specific example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wiring
Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable
Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media
His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned
In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage
Or firmware is realized.Such as, if realized with hardware in another embodiment, following skill well known in the art can be used
Any one of art or their combination are realized:With for data-signal realize logic function logic gates from
Logic circuit is dissipated, the specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), scene can compile
Journey gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries
It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium
In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in a processing module
It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould
Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as
Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer
In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above
The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as to limit of the invention
System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of the invention
Type.