原因:flask 参数到 js时,一直把单引号双引号,转换为 & # 39 ; & # 34;,导致数据一直不能用。 解决办法:可以通过js的tojson解决 data: {{ data.time_list|tojson }}