0

我需要遍历这个翡翠段:

.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:无法读取未定义的属性“文件名”!

4

0 回答 0