主题 : ${tag_list?size}这个在if判断里为什么不行?
级别: 举人
UID: 114727
积分:187 加为好友
威望: 36 精华: 0
主题:37 回复:130
注册时间:2017-07-04
在线时长:0
1#   发表于:2017-07-25 18:32:55  IP:222.27.*.*
[@cms_content_list channelId='81' channelOption='1']  
[#list tag_list as a]
[#if a_index==0]
[#if ${tag_list?size}==0]
0
[/#if]
${tag_list?size}
[/#if] 
[/#list]  
[/@cms_content_list]
级别: 举人
UID: 114727
积分:187 加为好友
威望: 36 精华: 0
主题:37 回复:130
注册时间:2017-07-04
在线时长:0
2#   发表于:2017-07-25 18:33:33  IP:222.27.*.*
freemarker.core.ParseException: Syntax error in template "WEB-INF/t/cms/www/jyzy/alone/personal.html" in line 75, column 14:
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.)

这个是报错
级别: 版主
UID: 70293
积分:78391 加为好友
威望: 1 精华: 0
主题:7 回复:68397
注册时间:2014-12-03
在线时长:0
3#   发表于:2017-07-26 08:10:39  IP:106.242.*.*
tag_list?size
不要写${}
1
1 共1页