"${" here as you are already in FreeMarker-expression-mode

freemaker 的错误解决this

不能使用“$ {”在这里你已经在 freemaker 的表达方式里面了code

意思就是,你这个 表达式 被 freemaker 的表达式 给包围了,因此此处的表达式不须要些 ${}it

符号了。io

0down votetable

Change <#assign a = ${annoCorrente}> to <#assign a = annoCorrente>class

(or you can do <#assign a = "${annoCorrente}"> but this is not recommended)后台

 将${} 去掉便可。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 表达式 就不须要 将后台的获取的数据 使用 ${}来表示了。

 

  1. <#if condition>…  
  2. <#elseif condition>…  
  3. <#elseif condition>…  
  4. <#else> …  
  5. </#if>  
  6.   
  7. 例子以下:  
  8. <#assign age=23>  
  9. <#if (age>60)>老年人  
  10. <#elseif (age>40)>中年人  
  11. <#elseif (age>20)>青年人  
  12. <#else> 少年人  
  13. </#if>  
相关文章
相关标签/搜索