流程控制规则
-
@if
控制是否评估块。¥
@if
controls whether or not a block is evaluated. -
@each
评估 列表 中的每个元素或 映射 中的每对元素的块。¥
@each
evaluates a block for each element in a list or each pair in a map. -
@for
对块进行一定次数的评估。¥
@for
evaluates a block a certain number of times. -
@while
评估块直到满足特定条件。¥
@while
evaluates a block until a certain condition is met.