Home > database >  Read the menu name from the database how to control permissions menu?
Read the menu name from the database how to control permissions menu?

Time:09-24

I from the database from the read the menu name such as "m_main. M_system" because a string format cannot be directly visible=true, how do you write to control the display of the menu?

CodePudding user response:

The recursive traversal menu, until you find the classname () for m_system item, then you can set the visible attribute of the item

CodePudding user response:

Define a menu type variables: menu. Memu item, will you read the menu name from database into a menu item type=menu (name), then using the item. The visible=true

CodePudding user response:

Have the menu () this function?
  • Related