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)。
Double Edge Trigger counter is composed of odd counter, even counter and data selector.
双边沿触发计数器由偶数、奇数加法计数器及数据选择器组成。
Data selector alternately to realize the functions of double edge trigger addition counter output the odd and even data in two counters.
数据选择器则将两个计数器中处于保持状态的奇偶数据交替输出,实现双边沿触发加法计数器的功能。
应用推荐