-3

js报告问题。在设计模板期间,我在本地计算机上收到此错误。我不明白这是什么问题。请让我知道有什么问题。

{{/for}}
-----------------------^ Expecting 'EOF', got 'OPEN_ENDBLOCK' Error: Parse error on line 206:
                        {{/for}}
-----------------------^ Expecting 'EOF', got 'OPEN_ENDBLOCK'
     at Object.parseError (/home/amar/pureSpectrumJsReport/node_modules/handlebars/dist/cjs/handlebars/compiler/parser.js:267:19)
     at Object.parse (/home/amar/pureSpectrumJsReport/node_modules/handlebars/dist/cjs/handlebars/compiler/parser.js:336:30)
     at HandlebarsEnvironment.parse (/home/amar/pureSpectrumJsReport/node_modules/handlebars/dist/cjs/handlebars/compiler/base.js:46:43)
     at compileInput (/home/amar/pureSpectrumJsReport/node_modules/handlebars/dist/cjs/handlebars/compiler/compiler.js:514:19)
     at ret (/home/amar/pureSpectrumJsReport/node_modules/handlebars/dist/cjs/handlebars/compiler/compiler.js:523:18)
     at /home/amar/pureSpectrumJsReport/node_modules/jsreport-handlebars/lib/handlebarsEngine.js:26:14
     at evalmachine.<anonymous>:1:41
     at ContextifyScript.Script.runInContext (vm.js:35:29)
     at ContextifyScript.Script.runInNewContext (vm.js:41:15)
     at Object.exports.runInNewContext (vm.js:72:17)
4

1 回答 1

1

您似乎在车把引擎上使用jsrender语法。

切换引擎或使用#each

于 2017-03-21T16:26:30.223 回答