循环遍历node.js应用程序中的玉

时间:2013-10-13 09:02:51

标签: javascript node.js pug

我需要遍历这个玉段:

.question.clearfix
                .que-no
                  | 1
                .que-text
                  | For maximum team productivity, a leader should:
                .clr
                .radio-vertical.left-offset2
                  label.radio.clearfix
                    input(name='Option_01', type='radio', value='445_1512')
                    div
                      | Let the team members be in charge
                  label.radio.clearfix
                    input(name='Option_01', type='radio')
                    div
                      | Closely monitor every team member's activities
                  label.radio.clearfix
                    input(name='Option_01', type='radio')
                    div
                      | Be a source of help and support for the team, with minimal interference
                  label.radio.clearfix
                    input(name='Option_01', type='radio')
                    div
                      | Check on the team's overall progress from time to time and encourage their suggestions

使用for循环我尝试了这个:

- for (var i = 0; i < 10; ++i) {
  .question.clearfix
                    .que-no
                      | 1
                    .que-text
                      | For maximum team productivity, a leader should:
                    .clr
                    .radio-vertical.left-offset2
                      label.radio.clearfix
                        input(name='Option_01', type='radio', value='445_1512')
                        div
                          | Let the team members be in charge
                      label.radio.clearfix
                        input(name='Option_01', type='radio')
                        div
                          | Closely monitor every team member's activities
                      label.radio.clearfix
                        input(name='Option_01', type='radio')
                        div
                          | Be a source of help and support for the team, with minimal interference
                      label.radio.clearfix
                        input(name='Option_01', type='radio')
                        div
                          | Check on the team's overall progress from time to time and encourage their suggestions
- }

TypeError:无法读取未定义的属性'filename'

0 个答案:

没有答案