In Javascript and Flask can I pass Jinja2 variable inside a script that is a module

前端 未结 0 1384
伪装坚强ぢ
伪装坚强ぢ 2021-01-19 23:12

I would like to pass a Jinja2 variable into a .js file. Then call the file from my page. Is that possible.

example:

test.js file

alert(\'{{myFla         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题