var List = {{ List|safe }};//safe 必须存在
python学习-- Django传递数据给JS
原文:https://www.cnblogs.com/ln-qiqi/p/10528368.html