Listing 5 below, contains a simple counter as in the previous examples.
下面的清单5包含一个与前面示例相同的计数器。
renders a heading with the content in the instance variable count, which contains the value of a simple counter.
使用实例变量count中的内容呈现了一个标题,该变量包含了一个简单计数器的值。
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)。
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)。
应用推荐