<p th:text=${salecode}></p> <a th:href="${#httpServletRequest.getScheme()+'://'+#httpServletRequest.getServerName()+':'+#httpServletRequest.getServerPort()+#httpServletRequest.getContextPath()+'/icon/'+salecode } " ></a>
效果图如下:
自己当笔记用,不给坏人用
<p th:text=${salecode}></p> <a th:href="${#httpServletRequest.getScheme()+'://'+#httpServletRequest.getServerName()+':'+#httpServletRequest.getServerPort()+#httpServletRequest.getContextPath()+'/icon/'+salecode } " ></a>
效果图如下:
自己当笔记用,不给坏人用