input输入的值传递到 th:href中,换个说法就是 th:href要能抓取到input框中的value
<input class="form-control mr-sm-2" type="text" th:name="carNum" placeholder="Search" th:id="carNumber" aria-label="Search">
<a type="button" class="btn btn-outline-success my-2 my-sm-0" th:href="@{/queryCar--此处要传递上面input值}">查找</a>
th:后端编译后再在页面呈现的,前端是不能给他赋值的,前端可以js修改input 的href的值
这还是写js吧。