Get the App
SLTechnology News&Howtos  ›  Development  › 

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

Shulou Source: shulou.com Published: 2022-06-03 09:25:36 10月28日 Update

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!

Tags: Management files menus navigation information students directories systems resources static functions pages content grades teachers articles configuration code value interests Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Microsoft Linux Apple MariaDB