Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 sitemesh 来装饰我的网页。有人可以指导我最佳做法。并且具有 JavaScript 代码依赖项,我想将它们header.jsp与sidebar.jsp正在装饰的主页一起合并到头部。
header.jsp
sidebar.jsp
基本上我想同时装饰 HTML 和<head>.
<head>
如果 healder.jsp 中的代码介于 之间<head></head>,则默认情况下,sitemesh 会将其附加到<head></head>主装饰器的 中。
<head></head>