Dynamically generate background management system navigation bar

How to dynamically generate the navigation bar
If you are still having a headache for the navigation bar that changes with the boss's mood, take a look at the following code, so that you can easily change only one page! ! !
First write a slild.html as shown below
Insert picture description here

Import the slid.html you wrote into the page that needs the navigation bar, and you can add what you need in slid.html in the future, and you don't need to modify every page.

<div th:replace="door/components/sild::sild"></div>

Guess you like

Origin blog.csdn.net/destiny503/article/details/106654866