Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to realize the function of navigation menu on the left side of the page by SpringMVC+EasyUI

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly introduces SpringMVC+EasyUI how to achieve the navigation menu on the left side of the page, the article is very detailed, has a certain reference value, interested friends must read it!

Code

Index.jsp

Var _ menus = {"menus": [{"menuid": "1", "icon": "", "menuname": "score Statistical Analysis", "menus": [{"menuid": "11", "menuname": "examination list", "icon": "icon-exam", "url": "ExamServlet?method=toExamListView"}]} {"menuid": "2", "icon": "," menuname ":" Student Information Management "," menus ": [{" menuid ":" 21 "," menuname ":" Student list "," icon ":" icon-user-student "," url ":" StudentServlet?method=toStudentListView "},]}, {" menuid ":" 3 "," icon ":" "menuname": "teacher Information Management", "menus": [{"menuid": "31", "menuname": "teacher list", "icon": "icon-user-teacher", "url": "TeacherServlet?method=toTeacherListView"},]}, {"menuid": "4", "icon": "", "menuname": "basic Information Management" "menus": [{"menuid": "41", "menuname": "Grade list", "icon": "icon-world", "url": "GradeServlet?method=toGradeListView"}, {"menuid": "42", "menuname": "Class list", "icon": "icon-house", "url": "ClazzServlet?method=toClazzListView"}, {"menuid": "43" "menuname": "course list", "icon": "icon-book-open", "url": "CourseServlet?method=toCourseListView"}}, {"menuid": "5", "icon": "", "menuname": "system Administration", "menus": [{"menuid": "51", "menuname": "system Settings", "icon": "icon-set" "url": "SystemServlet?method=toAdminPersonalView"},]}]}

Springmvc.xml configure static resources

Note:

1. EasyUI and JQuery files are placed in the webapp/resources directory, and jquery-1.7.2.js needs to be introduced.

2. The order of css and js files that introduce EasyUI into the jsp file is as follows, do not adjust it at will!

3. The static resource configuration of springMVC is for all files in the resources directory, so the static resource files such as pictures can also be placed directly in the resources directory.

4. The navigation menu is displayed in p with id nav below

The id attribute of this p must be nav, nothing else has been tried.

The above is all the contents of the article "how to achieve the navigation menu on the left side of the page by SpringMVC+EasyUI". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report