freemaker 的错误解决this
不能使用“$ {”在这里你已经在 freemaker 的表达方式里面了code
意思就是,你这个 表达式 被 freemaker 的表达式 给包围了,因此此处的表达式不须要些 ${}it
符号了。io
0down votetable |
Change (or you can do |
将${} 去掉便可。List
好比:数据
<#list myplanppScoreList.planeeMyList as planeeMy>
<div class="border_dotted marginTop_15 padding_15">
<!-- 工做目标 -->
<div style="margin-left: 25px;">
<h4>${planeeMy.hepplaneePo.title}</h4>
<p><h5>类别:
<#assign ptype = planeeMy.hepplaneePo.type>
<#if (ptype==1)>OKR
<#else> 重点工做 </#if> margin
不须要 改成 <#assign ptype = ${planeeMy.hepplaneePo.type}> 的不然会报错的
通常是被 list 或者是 #if 给包围了,那么在 这些里面 再写 好比 #if 表达式 就不须要 将后台的获取的数据 使用 ${}来表示了。