我尝试在HTML标记内用Rythm编写一个While循环,但是我不能
类似于下面的代码:
@{
int i = 0;
while( i< 5){
i++;
}
<h2>hello</h2>
@{
}
}发布于 2012-07-26 13:54:36
目前,Rythm不支持while循环。对于您的情况,使用for循环:
@for(int i = 0; i < 5; ++i) {
<h2>hello</h2>
}https://stackoverflow.com/questions/11509337
复制相似问题