文档说变量定义的方法:
<p th:with="name='fanlychie'">
<span th:text="${name}"></span>
</p>
请问如果我要定义个复杂的对象呢?如果是list常量呢?怎么定义?
文档说变量定义的方法:
<p th:with="name='fanlychie'">
<span th:text="${name}"></span>
</p>
请问如果我要定义个复杂的对象呢?如果是list常量呢?怎么定义?
代码里面定义不好吗?在模板里面定义复杂变量,是要走jsp的老路吗?