雜記1:thymeleaf中使用layui的table報錯

報錯如下: 原因: [[…]]之間的表達式在Thymeleaf被認爲是內聯表達式,在其中您可以使用任何類型的表達式,也會有效th:text屬性。 <p>Hello, [[${session.user.name}]]!</p> 等同於: <p>Hello, <span th:text="${session.user.name}">Sebastian</span>!</p> 解決方法:將[[...]]
相關文章
相關標籤/搜索