标签:path 绝对路径 tco pat etc class base get sep
base标签
1 <base href="<%=basePath%>">
实现base标签的绝对路径,代码如下:
1 <% 2 String path = request.getContextPath(); 3 String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() 4 + path + "/"; 5 %>
标签:path 绝对路径 tco pat etc class base get sep
原文地址:https://www.cnblogs.com/hzyhx/p/11067359.html