Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试在 HTML 标记中的 Rythm 中编写 While 循环,但我不能
像这样的代码:
@{ int i = 0; while( i< 5){ i++; } <h2>hello</h2> @{ } }
目前Rythm不支持while循环。使用for循环代替您的情况:
while
for
@for(int i = 0; i < 5; ++i) { <h2>hello</h2> }