标签:逗号 完全 特殊情况 使用 文字 bsp iter null 文本
<p> Now you are looking at a <span th:text="‘working web application‘">template file</span>. </p>
<p>The year is <span th:text="2013">1492</span>.</p> <p>In two years, it will be <span th:text="2013 + 2">1494</span>.</p>
<div th:if="${user.isAdmin()} == false">
<div th:if="${variable.something} == null">
数字,布尔和空字面(null)实际上是字面令牌 的特殊情况。
这些令牌允许在标准表达式中进行一点简化。它们的工作与文本文字(‘...‘)完全相同,但它们只允许使用字母(A-Z和a-z),数字(0-9),括号([和]),点(.),连字符(-)和下划线(_)。所以没有空白,没有逗号等.
<div th:class="content">...</div>
equals.
<div th:class="‘content‘">...</div>
(三)Themeleaf标准表达式之——文字(literals)
标签:逗号 完全 特殊情况 使用 文字 bsp iter null 文本
原文地址:http://www.cnblogs.com/zjfjava/p/6892958.html