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.
使用 Tiles 和 JSP。在 JSP 上,${param.ID}用于获取特定页面。
${param.ID}
sub-category.jsp
<jsp:include page="categories/sub-category/${param.ID}.jsp" flush="true" />
/sub-category/test-page.jsp是一个身份证
/sub-category/test-page.jsp
我需要找到一种方法来制作test-page.jsp自己可以插入的独特页面标题test-page.jsp。
test-page.jsp
我假设您想根据加载的页面更改网页的标题(例如 test-page.jsp)。
如果是这样,那么在 test-page.jsp 中,您可以编写
<script> document.title = "My Title"; </script>
或写在 document.onload()
最好是 jquery.ready 函数