Playframework 2.0.x是否支持< else if>在模板中 [英] Does Playframework 2.0.x support <else if> in templates
本文介绍了Playframework 2.0.x是否支持< else if>在模板中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道播放2.0.3及更高版本是否在视图中支持else if
?我只读过一个人必须这样编码:if {...}else{if{...}else{...}}
不敢相信.
I wonder if play 2.0.3 and higher supports else if
in views? I only read that one have to code that way: if {...}else{if{...}else{...}}
cannot believe that.
推荐答案
如果第二个,我在第二个之前使用了@:
I used an @ before the second if :
@if (true) {
...
} else { @if (true) {
...
} else {
...
}}
这篇关于Playframework 2.0.x是否支持< else if>在模板中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文