<%--
Created by IntelliJ IDEA.
User: Administrator
Date: 2021/9/2
Time: 20:26
To change this template use File | Settings | File Templates.
提取公共的页面
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>Title</title>
</head>
<body>
<%
String basePath=request.getScheme()
+"://"
+request.getServerName()
+":"
+request.getServerPort()
+request.getContextPath()
+"/";
%>
<base href="<%=basePath%>">
<link type="text/css" rel="stylesheet" href="static/css/style.css" >
<script type="text/javascript" src="static/script/jquery-1.7.2.js"></script>
</body>
</html>
动态Base标签以及相关的注意事项
最新推荐文章于 2022-06-28 10:59:11 发布