主题 : 语法问题 |
级别: 童生
![]() |
3# 发表于:2016-09-07 15:14:36 IP:114.235.*.*
[#if d.title ==${channel.name} ] 这样不行
|
||
---|---|---|---|
级别: 童生
![]() |
5# 发表于:2016-09-07 15:18:30 IP:114.235.*.*
搞定了,应该这样写:[#if d.title ==channel.name]
${}应该是freeMark的语法,不能用在标签上 You can't use "${" here as you are already in FreeMarker-expression-mode. Thus, instead of ${myExpression}, just write myExpression. (${...} is only needed where otherwise static text is expected, i.e, outside FreeMarker tags and ${...}-s.) |
||
---|---|---|---|
1
共1页