Of course, you can run loops backward instead of forward, or increment the loop counter by something other than 1, or even eliminate the loop counter completely as you do in a while statement.
当然,也可以反向而不是正向运行循环,或者使用1之外的循环计数器增量,甚至像while语句那样完全取消循环计数器。
The status attribute in the <g:each> tag is a simple counter field. (Notice this value is used on the next line in a ternary statement that sets the CSS style to either even or odd.)
<g:each> 标记的 status 属性是个简单的计数器字段(请注意这个值用在下一行的 ternary 语句中,用来将 CSS 样式设为 even 或 odd)。
Assembly language instruction sequence perform arithmetic, and jump instruction by changing the program counter value to execute the conditional statement and circular statement.
汇编语言依序执行算术指令,而跳转指令可以通过改变程序计数器的值来执行条件语句和循环语句。
应用推荐