需要加入:
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
然后就可以使用
<input type="hidden" th:value="${error}" id="error"/>
在thymeleaf中怎么使用js获取到,后端传过来的值
<script th:inline="javascript" >
var eqp = [[${eqp}]]
</script>
a标签中使用
<a th:href="@{|appSingle?flag=${app['appId']}|}"></a>