152-thymeleaf如何获取url与提交的参数
<script type="text/javascript" th:inline="javascript"> //协议名称 var scheme = [[${#request.getScheme()}]]; //服务器名称 var serverName = [[${#request.getServerName()}]]; //服务器端口号 var serverPort = [[${#request.getServerPort()}]]; //上下文根 var contextPath = [[${#request.getContextPath()}]]; //获取请求参数 var queryString = [[${#request.queryString}]]; //获取请求路径(不带参数) var requestURL = [[${#request.requestURL}]]; alert(queryString); </script>