后台传值:

return render_template('statistics/numberofuserlogin/login_number.html', result_json = json.dumps(result))

 

模板中JS取值:

js_object = eval('{{result_json|safe }}')

 

 

参考链接:

https://www.cnblogs.com/lazyboy1/p/5015111.html  

相关文章:

  • 2021-10-31
  • 2021-07-26
  • 2022-12-23
  • 2022-12-23
  • 2021-12-22
  • 2021-11-01
  • 2021-09-11
  • 2022-01-30
猜你喜欢
  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
  • 2022-01-09
  • 2021-12-06
  • 2023-03-18
  • 2021-11-09
相关资源
相似解决方案