thymeleaf里的th:if有办法获取js函数返回的值吗?

<option th:each="kin:${result}" th:if="${kin.kind}" th:value="${kin.typeId}" th:text="${kin.type}"></option>
    function getK() {
       var value = document.form.kind.value;
       return value;
    }

th:if可不可以判断这个kin.kind是否等于getK()返回的值

不知道你这个问题是否已经解决, 如果还没有解决的话:

如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 以帮助更多的人 ^-^