JavaScript raises SyntaxError with data rendered in Jinja template

后端 未结 3 1198
无人共我
无人共我 2020-11-21 13:57

I am trying to pass data as JSON from a Flask route to a Jinja template rendering JavaScript. I want to iterate over the data using JavaScript. The browser shows Syn

3条回答
  •  时光说笑
    2020-11-21 14:05

    I could archive it using the following code sample.

    
    

提交回复
热议问题